flowerbox-delivery/features/step_definitions/then/temp_file/should_contain.rb
2012-01-30 11:34:57 -05:00

8 lines
199 B
Ruby

Then /^the temp file should contain:$/ do |string|
file_lines = File.read(@temp_file_path).lines.collect(&:strip)
string.lines.each do |line|
file_lines.should include(line.strip)
end
end