diff options
Diffstat (limited to 'spec/unit/application/device_spec.rb')
-rwxr-xr-x | spec/unit/application/device_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/application/device_spec.rb b/spec/unit/application/device_spec.rb index 832b7e55b..df8cd3eaf 100755 --- a/spec/unit/application/device_spec.rb +++ b/spec/unit/application/device_spec.rb @@ -260,8 +260,7 @@ describe Puppet::Application::Device do end it "should exit if the device list is empty" do - @device.expects(:exit).with(1) - @device.main + expect { @device.main }.to exit_with 1 end describe "for each device" do |