Rails and capybara tasks

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
use other hacks). Can somebody tell me why this is the case?



what is your rails, rspec and capybara version?

all the best,


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

You can read what it says on the documentation here: