diff --git a/spec/msfupdate_spec.rb b/spec/msfupdate_spec.rb index 561f471432c8..f23b23fb019e 100644 --- a/spec/msfupdate_spec.rb +++ b/spec/msfupdate_spec.rb @@ -148,6 +148,22 @@ def dummy_apt_pathname end end end + + context "with wait" do + let(:args) { ['wait'] } + it "sets @actually_wait" do + subject.parse_args(args) + subject.instance_variable_get(:@actually_wait).should == true + end + end + + context "with nowait" do + let(:args) { ['nowait'] } + it "sets @actually_wait" do + subject.parse_args(args) + subject.instance_variable_get(:@actually_wait).should == false + end + end end context "in an apt installation" do