Rails and capybara tasks

24 views
Skip to first unread message

Arun kant sharma

unread,
Jan 29, 2014, 9:13:21 PM1/29/14
to rubyonra...@googlegroups.com
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

and...@benjamin.dk

unread,
Jan 30, 2014, 9:59:50 AM1/30/14
to rubyonra...@googlegroups.com
Hey,

what is your rails, rspec and capybara version?

all the best,

Andre

Arun kant sharma

unread,
Jan 30, 2014, 10:35:54 AM1/30/14
to rubyonra...@googlegroups.com

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>

and...@benjamin.dk

unread,
Feb 3, 2014, 2:59:21 AM2/3/14
to rubyonra...@googlegroups.com
You can read what it says on the documentation here:


Reply all
Reply to author
Forward
0 new messages