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

4 lines
120 B
Ruby
Raw Normal View History

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