diff options
author | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
---|---|---|
committer | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
commit | d4b83be375ac1dead058e091191ee7c7b7c24c8a (patch) | |
tree | dc825687392ae3068de5b764be60c53122d9e02a /spec/unit/application/apply_spec.rb | |
parent | 229cbb976fe0f70f5f30548b83517b415840f9bb (diff) | |
parent | 1681684857c6e39d60d87b0b3520d8783977ceff (diff) | |
download | puppet-upstream/3.7.0.tar.gz |
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/unit/application/apply_spec.rb')
-rwxr-xr-x | spec/unit/application/apply_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index de4784fbe..ec6afee66 100755 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -131,7 +131,9 @@ describe Puppet::Application::Apply do @apply.setup - expect(Puppet::Util::Profiler.current).to be_a(Puppet::Util::Profiler::WallClock) + expect(Puppet::Util::Profiler.current).to satisfy do |ps| + ps.any? {|p| p.is_a? Puppet::Util::Profiler::WallClock } + end end it "does not have a profiler if profiling is disabled" do @@ -139,7 +141,7 @@ describe Puppet::Application::Apply do @apply.setup - expect(Puppet::Util::Profiler.current).to eq(Puppet::Util::Profiler::NONE) + expect(Puppet::Util::Profiler.current.length).to be 0 end it "should set default_file_terminus to `file_server` to be local" do |