Skip to content

host required #14

@chikamichi

Description

@chikamichi

Hi,

In a Rails app using Capybara, in order to use the "I send a XXX request to…" step definitions, I needed to specify the host otherwise it would always 404. Therefore I now provide page.driver.send with a fully-fledged path in the step definition. I did that the brutal way by adding the following piece of code in the step definition, before the final if/else:

current_host = Capybara.app_host || Capybara.default_host
path = current_host + path

Capybara's internals (see Capybara::RackTest::Browser#process) feature a more subtle way of handling the issue.

Still, I am not sure how it should be fixed in cucumber-api-steps. Food for thoughts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions