rspec/rspec-rails — pull request #632 by jnicklas (2012-11-05 14:00:41+00:00)
Title: Add example group for features

This fixes various issues with the integration between RSpec and Capybara 2.0.

- It includes Route helpers, these were previously unavailable, due to the fact that the only reason they are available in request spec is that those delegate via method_missing to an IntegrationTest instance.

- It adds the `:feature` type to all features. This way people can include module into `:type => :feature` examples and they will work when their specs are places in this folder.

David previously commented that he didn't want to add Capybara specific behaviour outside of `rspec/rails/capybara`. I was careful to avoid doing that. The feature example group does not explicitly include Capybara, instead, Capybara is included due to Capybara itself hooking into `:type => :feature`. This is much cleaner than the way it was before.

I tested this against both a freshly generated Rails app, as well as an existing, rather large project, both worked well.