features/step_definitions/scaffolder-tools.rb in scaffolder-tools-0.1.2 vs features/step_definitions/scaffolder-tools.rb in scaffolder-tools-0.1.3
- old
+ new
@@ -1,4 +1,8 @@
When /^I call "([^"]*)" with arguments "([^"]*)"$/ do |command,args|
bin = File.join(File.dirname(__FILE__),'..','..','bin',command)
- When "I run \"#{bin} #{args}\""
+ When "I run `#{bin} #{args}`"
+end
+
+Then /^the stdout yaml should contain exactly:$/ do |string|
+ YAML.load(string).should == YAML.load(all_stdout)
end