Fix a failing unit test

This commit is contained in:
Mitchell Hashimoto 2012-01-11 23:57:19 -08:00
parent 8cc162f48f
commit 4cfabc690b
1 changed files with 3 additions and 3 deletions

View File

@ -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