class VCR::CucumberTags::ScenarioNameBuilder
Constructs a cassette name from a Cucumber 2 scenario outline @private
Public Class Methods
new(test_case)
click to toggle source
# File lib/vcr/test_frameworks/cucumber.rb, line 74 def initialize(test_case) @parts = [] test_case.describe_source_to self end
Public Instance Methods
cassette_name()
click to toggle source
# File lib/vcr/test_frameworks/cucumber.rb, line 79 def cassette_name @parts.join("/") end
examples_table_row(row)
click to toggle source
# File lib/vcr/test_frameworks/cucumber.rb, line 92 def examples_table_row(row) @parts.unshift "| %s |" % row.values.join(" | ") self end
feature(feature)
click to toggle source
# File lib/vcr/test_frameworks/cucumber.rb, line 83 def feature(feature) @parts.unshift feature.name self end
Also aliased as: scenario_outline
scenario(*)
click to toggle source
# File lib/vcr/test_frameworks/cucumber.rb, line 89 def scenario(*) self end
Also aliased as: examples_table