Skip to content

Commit

Permalink
Test the old wait/nowait behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
bturner-r7 committed Nov 15, 2013
1 parent 314e8fd commit 8ea83ed
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/msfupdate_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ea83ed

Please sign in to comment.