Sha256: 45d83028084726e5d1c891ec873f2aaa1fd196481dab6da0e5f4e7dbd46e4951

Contents?: true

Size: 315 Bytes

Versions: 40

Compression:

Stored size: 315 Bytes

Contents

require 'spec_helper'
require 'puppet/util/profiler'

describe Puppet::Util::Profiler::None do
  let(:profiler) { Puppet::Util::Profiler::None.new }

  it "returns the value of the profiled block" do
    retval = profiler.profile("Testing") { "the return value" }

    retval.should == "the return value"
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

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