ruby-on-railsrspeccucumberwebrat

Rspec integration tests without cucumber?


Is there a way to do integration tests with Rspec without using Cucumber? I prefer using just plain old Webrat.


Solution

  • The latest version of RSpec-Rails (1.2.7) now has integration support. Upgrade then start adding specs to spec/integration or use the 'integration_spec' generator. Configure Webrat in spec/spec_helper.rb and you're set!