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.
精彩评论