Sha256: 8d7171761b6dec13e39ced68f526e2f6b0903298a3c369502e14827946f41ff5
Contents?: true
Size: 400 Bytes
Versions: 39
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' require 'puppet/util/profiler' describe Puppet::Util::Profiler::WallClock do it "logs the number of seconds it took to execute the segment" do profiler = Puppet::Util::Profiler::WallClock.new(nil, nil) message = profiler.do_finish(profiler.start(["foo", "bar"], "Testing"), ["foo", "bar"], "Testing")[:msg] message.should =~ /took \d\.\d{4} seconds/ end end
Version data entries
39 entries across 39 versions & 1 rubygems