Sha256: 975a1109f638b3eb9874aefc54333e9d21e5ae4d4eac6a6840621e5dee1af3ec
Contents?: true
Size: 1.14 KB
Versions: 21
Compression:
Stored size: 1.14 KB
Contents
Feature: Before Hook Scenario: Examine names of elements Given a file named "features/foo.feature" with: """ Feature: Feature name Scenario: Scenario name Given a step Scenario Outline: Scenario Outline name Given a <placeholder> Examples: Examples Table name | <placeholder> | | step | """ And a file named "features/support/hook.rb" with: """ names = [] Before do |scenario| unless scenario.respond_to?(:scenario_outline) names << scenario.feature.name.split("\n").first names << scenario.name.split("\n").first else names << scenario.scenario_outline.feature.name.split("\n").first names << scenario.scenario_outline.name.split("\n").first end if(names.size == 4) raise "NAMES:\n" + names.join("\n") + "\n" end end """ When I run `cucumber` Then the output should contain: """ NAMES: Feature name Scenario name Feature name Scenario Outline name """
Version data entries
21 entries across 21 versions & 1 rubygems