Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
Making run test more aggressive
Browse files Browse the repository at this point in the history
  • Loading branch information
Demitri Swan committed Aug 13, 2016
1 parent e5d0b59 commit bae56eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/unit/vagrant_spec_test/test_plan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ def execute_plan_tests_proc
context 'when nodes returns nil' do
it '#run does not fail with NoMethodError' do
allow(subject).to receive(:execute_plan_tests)
allow(Kernel).to receive(:exit)
allow(subject).to receive(:exit)
allow(subject).to receive(:nodes) { nil }

# This will warn about potential false positives, but we truly only want
# to test for a NoMethodError as a regression test.
expect { subject.run }.not_to raise_error(NoMethodError)
expect { subject.run }.not_to raise_error
end
end
end

0 comments on commit bae56eb

Please sign in to comment.