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