Forum: Ruby on Rails Rails and capybara tasks

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3483e7782badfc1b1c9f36540b2560fe?d=identicon&s=25 Arun kant sharma (Guest)
on 2014-01-30 08:11
(Received via mailing list)
When we create a new integration test using
$ rails g integration_test Name
it create it in spec/requests directory, and capybara is not available
there by default. I have to move it to spec/feature dir to make it work
(or
use other hacks). Can somebody tell me why this is the case?

Thanks,
Arun
5251fb12ad96bacd1f57e579b28b30fe?d=identicon&s=25 unknown (Guest)
on 2014-01-30 16:01
(Received via mailing list)
Hey,

what is your rails, rspec and capybara version?

all the best,

Andre
3483e7782badfc1b1c9f36540b2560fe?d=identicon&s=25 Arun kant sharma (Guest)
on 2014-01-30 16:36
(Received via mailing list)
rails 4.0.2
rspec 2.14.1
capybara 2.2.1
when I put tests in spec/requests dir, I get this error:

undefined method `visit' for
#<RSpec::Core::ExampleGroup::Nested_5::Nested_1:0x00000004ffe3b8>
5251fb12ad96bacd1f57e579b28b30fe?d=identicon&s=25 unknown (Guest)
on 2014-02-03 09:00
(Received via mailing list)
You can read what it says on the documentation here:

https://www.relishapp.com/rspec/rspec-rails/docs/r...
This topic is locked and can not be replied to.