Skip to content
Snippets Groups Projects
  1. Jan 12, 2013
  2. Jan 07, 2013
  3. Nov 13, 2012
  4. Nov 12, 2012
  5. Nov 11, 2012
  6. Nov 10, 2012
    • Jonas Nicklas's avatar
      Add example group for features · 0fda98b7
      Jonas Nicklas authored
      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.
      0fda98b7
  7. Nov 09, 2012
  8. Nov 06, 2012
Loading