Incompatibility with capybara-email gem
sreid99 opened this issue · 3 comments
Switching to the mechanize driver, which I need to test external urls, is breaking some of my capybara tests.
It looks like there's an incompatibility with this gem and the capybara-email gem. When I use click_link on an email, I get the following error. It works fine with standard capybara.
NoMethodError: undefined method `url' for #<Capybara::Mechanize::Driver:0x7f8afb0>
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-email-0.1.2/lib/capybara/email/driver.rb:14:in `follow'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-email-0.1.2/lib/capybara/email/node.rb:15:in `click'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/element.rb:99:in `block in click'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/base.rb:46:in `wait_until'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/element.rb:99:in `click'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/capybara-1.1.2/lib/capybara/node/actions.rb:27:in `click_link'
@sreid99 thanks for submitting this issue. Can you throw some sample code in a gist to help reproduce this error?
We much more closely adhere to the rack_test driver design since the 1.0 release. This is most likely fixed now.
Agreed. I'd also shy away from adding tests for an external, non-dependency gem, so I'm closing this because it's likely fixed and there hasn't been any follow up. @sreid99 please re-open if you have more details.