diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2010-07-01 12:01:46 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-07-01 13:48:03 -0700 |
| commit | 174e02a2b71fd51ff27f9186526352d79253da26 (patch) | |
| tree | bd7d78e2eb18dd3394344c4f0b3112b0d52a49ba /spec/unit | |
| parent | 62e3b611e65deab60c615eac553cac9aa7e76d9d (diff) | |
| download | puppet-174e02a2b71fd51ff27f9186526352d79253da26.tar.gz puppet-174e02a2b71fd51ff27f9186526352d79253da26.tar.xz puppet-174e02a2b71fd51ff27f9186526352d79253da26.zip | |
[#4090] Change how RunMode instances are created so that an object for each RunMode is only created once instead of every time it's called
Got lots of unpredictable test failures, presumably because a new
RunMode was being created every time we accessed the RunMode.
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/ssl/certificate_authority_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/ssl/certificate_authority_spec.rb b/spec/unit/ssl/certificate_authority_spec.rb index db812b278..a39113d8f 100755 --- a/spec/unit/ssl/certificate_authority_spec.rb +++ b/spec/unit/ssl/certificate_authority_spec.rb @@ -27,7 +27,7 @@ describe Puppet::SSL::CertificateAuthority do describe "and the host is a CA host and the run_mode is master" do before do Puppet.settings.stubs(:value).with(:ca).returns true - Puppet::Util::RunMode.any_instance.stubs(:master?).returns true + Puppet.run_mode.stubs(:master?).returns true @ca = mock('ca') Puppet::SSL::CertificateAuthority.stubs(:new).returns @ca |
