Fix a failing unit test
This commit is contained in:
parent
8cc162f48f
commit
4cfabc690b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue