Sha256: 6a6ad13d5581493c9b616677909164cd466c41c70e849c7d0503766a3e21e822

Contents?: true

Size: 337 Bytes

Versions: 40

Compression:

Stored size: 337 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.finish(profiler.start)

    message.should =~ /took \d\.\d{4} seconds/
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
puppet-3.6.2 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.2-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.1 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.1-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.0 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.0-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.0.rc1 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.6.0.rc1-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.1 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.1-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.1.rc1 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.1.rc1-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.0.rc3 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.0.rc3-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.0.rc2 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.0.rc2-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.0.rc1 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.5.0.rc1-x86-mingw32 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.4.3 spec/unit/util/profiler/wall_clock_spec.rb
puppet-3.4.2 spec/unit/util/profiler/wall_clock_spec.rb