Sha256: 8a15f3924a98f54a4a31fd4f618c1458c950f5a1e07c8063d00e158d8c35a7fc
Contents?: true
Size: 718 Bytes
Versions: 3
Compression:
Stored size: 718 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
3 entries across 3 versions & 1 rubygems