collectiveidea / capybara-ui

Page objects for readable, resilient acceptance tests
MIT License
6 stars 0 forks source link

Path helpers don't work when specifying a path. #5

Closed manlycode closed 7 years ago

manlycode commented 10 years ago

It'd be nice to be able to user *_path helpers when setting the path for a Capybara::UI class.

laserlemon commented 10 years ago

I'd love for this to work too and haven't given up on the idea, but the only issue is that Capybara::UI isn't Rails-specific. So we'd want to load those helpers into Capybara::UI, but only if they're available in the first place. Capybara::UI will work with any Rack app, not just Rails.

ersatzryan commented 10 years ago

could make this a specific file that you have to require to get the helpers require "capybara/ui/rails"

laserlemon commented 10 years ago

Good idea.

manlycode commented 10 years ago

+1

— Sent from Mailbox for iPhone

On Wed, Dec 25, 2013 at 3:24 PM, Ryan G notifications@github.com wrote:

could make this a specific file that you have to require to get the helpers require "capybara/ui/rails"

Reply to this email directly or view it on GitHub: https://github.com/collectiveidea/capybara-ui/issues/5#issuecomment-31204786

ersatzryan commented 10 years ago

@laserlemon I think I have a good way forward code wise on this, but not sure how to go about testing... if you have any time free ping me

asheren commented 7 years ago

Hi there! We're doing some open source maintenance work and closing old issues. If this issue is still applicable or you would still like it to be addressed, please re-open the issue by April 17, 2017. Thanks!