Hi
I have a story step that looks like this:
When /(the user|then) runs "migrate (.*)"/ do |_, args|
cd project_dir do
@output = `#{migrate} #{args}`
end
@output_lines = @output.split("\n")
end
Which is fine for testing STDOUT but not STDERR. I don't want to
redirect STDERR to STDOUT because then the story can't prove that
error messages are displayed separately (although the specs would)
Any hints? :)
Thanks
Ashley
--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users