From 4cfabc690b32b65bf90bcdbc0d345744c1ffc6ba Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Jan 2012 23:57:19 -0800 Subject: [PATCH] Fix a failing unit test --- test/unit/vagrant/command/base_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/vagrant/command/base_test.rb b/test/unit/vagrant/command/base_test.rb index 1088a2de1..7fdb95176 100644 --- a/test/unit/vagrant/command/base_test.rb +++ b/test/unit/vagrant/command/base_test.rb @@ -38,10 +38,10 @@ describe Vagrant::Command::Base do end end - it "returns nil if invalid options are given" do + it "raises an error if invalid options are given" do instance = klass.new(["-f"], nil) - instance.should_receive(:puts) - instance.parse_options(OptionParser.new).should be_nil + expect { instance.parse_options(OptionParser.new) }. + to raise_error(Vagrant::Errors::CLIInvalidOptions) end end