Sha256: 11c0f504bf1849972339e7d7598991ea4c31642181d65df4405d14bc91938dea

Contents?: true

Size: 1.63 KB

Versions: 5

Compression:

Stored size: 1.63 KB

Contents

Then /^the feature tag correctly stores its underlying implementation$/ do
  raw_element = @parsed_files.first.feature.tag_elements.first.raw_element

  raw_element.has_key?('name').should be_true
end

When(/^the test tag correctly stores its underlying implementation$/) do
  raw_element = @parsed_files.first.feature.tests.first.tag_elements.first.raw_element

  raw_element.has_key?('name').should be_true
end

When(/^the example tag correctly stores its underlying implementation$/) do
  raw_element = @parsed_files.first.feature.tests.first.examples.first.tag_elements.first.raw_element

  raw_element.has_key?('name').should be_true
end

Then(/^the feature tag name is "([^"]*)"$/) do |tag_name|
  tag = @parsed_files.first.feature.tag_elements.first

  tag.name.should == tag_name
end

When(/^the test tag name is "([^"]*)"$/) do |tag_name|
  tag = @parsed_files.first.feature.tests.first.tag_elements.first

  tag.name.should == tag_name
end

When(/^the example tag name is "([^"]*)"$/) do |tag_name|
  tag = @parsed_files.first.feature.tests.first.examples.first.tag_elements.first

  tag.name.should == tag_name
end

Then(/^the feature tag source line "([^"]*)"$/) do |line|
  tag = @parsed_files.first.feature.tag_elements.first

  tag.source_line.should == line
end

When(/^the test tag source line "([^"]*)"$/) do |line|
  tag = @parsed_files.first.feature.tests.first.tag_elements.first

  tag.source_line.should == line
end

When(/^the example tag source line "([^"]*)"$/) do |line|
  tag = @parsed_files.first.feature.tests.first.examples.first.tag_elements.first

  tag.source_line.should == line
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber_analytics-1.4.2 features/step_definitions/tag_steps.rb
cucumber_analytics-1.4.1 features/step_definitions/tag_steps.rb
cucumber_analytics-1.4.0 features/step_definitions/tag_steps.rb
cucumber_analytics-1.3.0 features/step_definitions/tag_steps.rb
cucumber_analytics-1.2.0 features/step_definitions/tag_steps.rb