From e15b974c15b9daa13d766a1a883d3816ec5183c4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Dec 2011 13:50:46 -0800 Subject: [PATCH] Fix more tests to expect error messages on stderr --- test/acceptance/support/shared/command_examples.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/acceptance/support/shared/command_examples.rb b/test/acceptance/support/shared/command_examples.rb index 06618ebb3..e3d0f7551 100644 --- a/test/acceptance/support/shared/command_examples.rb +++ b/test/acceptance/support/shared/command_examples.rb @@ -10,7 +10,7 @@ shared_examples "a command that requires a Vagrantfile" do |*args| it "fails if no Vagrantfile is found" do result = execute(*command) result.should_not be_success - result.stdout.should match_output(:no_vagrantfile) + result.stderr.should match_output(:no_vagrantfile) end end @@ -28,6 +28,6 @@ shared_examples "a command that requires a virtual machine" do |*args| result = execute(*command) result.should_not be_success - result.stdout.should match_output(:error_vm_must_be_created) + result.stderr.should match_output(:error_vm_must_be_created) end end