Sha256: 7b152966c867083a5d9ac914cca14097e565ffaa503fe0c4e6c86aee64a87981

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 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

Version data entries

3 entries across 3 versions & 1 rubygems

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