penchant/features/step_definitions/then/the_file_should_have_conten...

4 lines
120 B
Ruby

Then /^the file "([^"]*)" should have the following content:$/ do |file, string|
File.read(file).should == string
end