diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-22 14:40:56 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-04-22 15:39:03 -0700 |
| commit | 435c826ead5c81c3eb7c47efe9c52e2e77c14666 (patch) | |
| tree | f6756a85891070cde7f2572206b8d8fc91e45aff /spec/integration/application | |
| parent | 96195c1dc2fea6262523fcc1726c6dfd7fea274a (diff) | |
| download | puppet-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/integration/application')
| -rwxr-xr-x | spec/integration/application/doc_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/application/doc_spec.rb b/spec/integration/application/doc_spec.rb index df9b91608..c1e463033 100755 --- a/spec/integration/application/doc_spec.rb +++ b/spec/integration/application/doc_spec.rb @@ -36,8 +36,8 @@ describe Puppet::Application::Doc do Puppet[:modulepath] = modules_dir Puppet[:manifest] = site_file puppet.options[:mode] = :rdoc - puppet.expects(:exit).with(0) - puppet.run_command + + expect { puppet.run_command }.to exit_with 0 File.should be_exist('doc') ensure |
