Rspec integration tests without cucumber?

后端 未结 3 1665
慢半拍i
慢半拍i 2021-02-07 21:00

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

3条回答
  •  忘了有多久
    2021-02-07 21:16

    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!

提交回复
热议问题