Sha256: e4f84bd6eb5effb34b88dc9d074734741c8ed0a2b559c81f9414c80b412a250c

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 Bytes

Contents

Then /^(?:the )?file(?: "([^"]*)")? is found to have the following properties:$/ do |file, properties|
  file ||= 1
  properties = properties.rows_hash

  properties.each do |property, expected_value|
    if property == 'path'
      expected_value.sub!('path_to', @test_directory)
    end

    assert expected_value == @parsed_files[file - 1].send(property.to_sym).to_s
  end
end

When /^(?:the )?file(?: "([^"]*)")? features are as follows:$/ do |file, feature|
  file ||= 1

  assert @parsed_files[file - 1].feature.name == feature.raw.flatten.first
end

When /^(?:the )?file(?: "([^"]*)")? has no features$/ do |file|
  file ||= 1

  assert @parsed_files[file - 1].feature.nil?
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber_analytics-0.0.9 features/step_definitions/file_steps.rb
cucumber_analytics-0.0.8 features/step_definitions/file_steps.rb
cucumber_analytics-0.0.7 features/step_definitions/file_steps.rb
cucumber_analytics-0.0.6 features/step_definitions/file_steps.rb