From bae56ebf5d64d604b9089679221168710b204fe3 Mon Sep 17 00:00:00 2001 From: Demitri Swan Date: Fri, 12 Aug 2016 22:22:50 -0700 Subject: [PATCH] Making run test more aggressive --- spec/unit/vagrant_spec_test/test_plan_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/unit/vagrant_spec_test/test_plan_spec.rb b/spec/unit/vagrant_spec_test/test_plan_spec.rb index ba217f7..1d11d0a 100644 --- a/spec/unit/vagrant_spec_test/test_plan_spec.rb +++ b/spec/unit/vagrant_spec_test/test_plan_spec.rb @@ -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