Sha256: d1c17b7800f52abe1071099daf3c1d045649c4605860906ceffd9153695e1ca1

Contents?: true

Size: 710 Bytes

Versions: 4

Compression:

Stored size: 710 Bytes

Contents

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

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

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

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

  actual_files = @parsed_directories[directory - 1].feature_files.collect { |file| file.name }

  assert actual_files.flatten.sort == files.raw.flatten.sort
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber_analytics-0.0.7 features/step_definitions/directory_steps.rb
cucumber_analytics-0.0.6 features/step_definitions/directory_steps.rb
cucumber_analytics-0.0.5 features/step_definitions/directory_steps.rb
cucumber_analytics-0.0.4 features/step_definitions/directory_steps.rb