Sha256: 5df80558d8ae92237c3a1a739c3ff3f722004f4a0c44a7ba77212ebef8ee68f4

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
cucumber_analytics-0.0.5 features/step_definitions/file_steps.rb
cucumber_analytics-0.0.4 features/step_definitions/file_steps.rb