features/steps/sandbox_steps.rb in timcharper-spork-0.5.5 vs features/steps/sandbox_steps.rb in timcharper-spork-0.5.6

- old
+ new

@@ -54,9 +54,15 @@ puts "I can't seem to launch Spork properly. Output was:\n#{output}" true.should == false end end +Then /the file "([^\"]*)" should include "([^\"]*)"/ do |filename, content| + in_current_dir do + File.read(filename).should include(content) + end +end + Then /^the (error output|output) should contain$/ do |which, text| (which == "error output" ? last_stderr : last_stdout).should include(text) end Then /^the (error output|output) should contain "(.+)"$/ do |which, text|