summaryrefslogtreecommitdiffstats
path: root/spec/unit/application/indirection_base_spec.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-22 14:40:56 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-22 15:39:03 -0700
commit435c826ead5c81c3eb7c47efe9c52e2e77c14666 (patch)
treef6756a85891070cde7f2572206b8d8fc91e45aff /spec/unit/application/indirection_base_spec.rb
parent96195c1dc2fea6262523fcc1726c6dfd7fea274a (diff)
downloadpuppet-435c826ead5c81c3eb7c47efe9c52e2e77c14666.tar.gz
puppet-435c826ead5c81c3eb7c47efe9c52e2e77c14666.tar.xz
puppet-435c826ead5c81c3eb7c47efe9c52e2e77c14666.zip
maint: use the exit_with helper everywhere...
Now we have the exit_with matcher, we should use it everywhere that we previously stubbed, expected, or caught the exit status in an ad-hoc way. Reviewed-By: Jesse Wolf <jesse@puppetlabs.com>
Diffstat (limited to 'spec/unit/application/indirection_base_spec.rb')
-rwxr-xr-xspec/unit/application/indirection_base_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/application/indirection_base_spec.rb b/spec/unit/application/indirection_base_spec.rb
index 0d7554aae..833fb424e 100755
--- a/spec/unit/application/indirection_base_spec.rb
+++ b/spec/unit/application/indirection_base_spec.rb
@@ -33,6 +33,6 @@ describe Puppet::Application::IndirectionBase do
# Not a very nice thing. :(
$stderr.stubs(:puts)
- expect { subject.run }.should raise_error SystemExit
+ expect { subject.run }.to exit_with 0
end
end