Sha256: ac96c12748cbc01a5fc0e2bad36daef79fb68e2960374ebd99b19bfbcacb85b5
Contents?: true
Size: 470 Bytes
Versions: 2
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true # Filter that activates steps with obvious pass / fail behaviour class StandardStepActions < Cucumber::Core::Filter.new def test_case(test_case) test_steps = test_case.test_steps.map do |step| case step.name when /fail/ step.with_action { raise Failure } when /pass/ step.with_action {} else step end end test_case.with_steps(test_steps).describe_to(receiver) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-3.0.0.pre.2 | spec/support/standard_step_actions.rb |
cucumber-3.0.0.pre.1 | spec/support/standard_step_actions.rb |