Method: Cornucopia::Util::TestHelper#cucumber_name
- Defined in:
- lib/cornucopia/util/test_helper.rb
#cucumber_name(scenario) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cornucopia/util/test_helper.rb', line 12 def cucumber_name(scenario) report_name = "Unknown" if scenario.respond_to?(:feature) if scenario.feature.respond_to?(:name) report_name = "#{scenario.feature.name}:#{scenario.name}" else report_name = "#{scenario.feature.title}:#{scenario.title}" end elsif scenario.respond_to?(:line) report_name = "Line - #{scenario.line}" end report_name end |