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
|
||||||
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 = klass.new(["-f"], nil)
|
||||||
instance.should_receive(:puts)
|
expect { instance.parse_options(OptionParser.new) }.
|
||||||
instance.parse_options(OptionParser.new).should be_nil
|
to raise_error(Vagrant::Errors::CLIInvalidOptions)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue