Rspec integration tests without cucumber?

gsmendoza picture gsmendoza · Jun 10, 2009 · Viewed 7.4k times · Source

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

Answer

Jeff Siegel picture Jeff Siegel · Jun 25, 2009

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!