Sha256: 0cffcf3e240e38b26294508a60d343663e4d24e358aa105280f5c7cd57ca5b2f

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

Then /^(?:feature "([^"]*)" )?"([^"]*)" example "([^"]*)" has a "([^"]*)"$/ do |file, test, example, name|
  file ||= 1

  assert { @parsed_files[file - 1].feature.tests[test - 1].examples[example - 1].name == name }
end

When /^(?:feature "([^"]*)" )?"([^"]*)" example "([^"]*)" descriptive lines are as follows:$/ do |file, test, example, lines|
  file ||= 1
  lines = lines.raw.flatten.delete_if { |line| line == '' }

  assert { @parsed_files[file - 1].feature.tests[test - 1].examples[example - 1].description == lines }
end

When /^(?:feature "([^"]*)" )?"([^"]*)" example "([^"]*)" tags are as follows:$/ do |file, test, example, tags|
  file ||= 1
  tags = tags.raw.flatten.delete_if { |line| line == '' }

  assert { @parsed_files[file - 1].feature.tests[test - 1].examples[example - 1].tags == tags }
end

When /^(?:feature "([^"]*)" )?"([^"]*)" example "([^"]*)" rows are as follows:$/ do |file, test, example, rows|
  file ||= 1
  rows = rows.raw.flatten

  assert { @parsed_files[file - 1].feature.tests[test - 1].examples[example - 1].rows == rows }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber_analytics-0.0.3 features/step_definitions/outline_steps.rb
cucumber_analytics-0.0.2 features/step_definitions/outline_steps.rb
cucumber_analytics-0.0.1 features/step_definitions/outline_steps.rb