summaryrefslogtreecommitdiffstats
path: root/spec/unit/application/device_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/application/device_spec.rb')
-rwxr-xr-xspec/unit/application/device_spec.rb3
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