开发者

Cucumber's multi-example tables for Rspec?

开发者 https://www.devze.com 2023-04-02 09:05 出处:网络
Is there something similar to Cucumber\'s multi-example tables (usin开发者_如何转开发g pickle) for Rspec acceptance specs (capybara)?

Is there something similar to Cucumber's multi-example tables (usin开发者_如何转开发g pickle) for Rspec acceptance specs (capybara)?

Would be very convenient for testing multiple scenarios and outcomes without having to recreate each spec with only minor parameter differences.


You can put a spec in an each block, or put an each block in a spec.

But I'd recommend using Cucumber. RSpec acceptance tests are quite painful by comparison.

0

精彩评论

暂无评论...
验证码 换一张
取 消