Sha256: 2d2398655b3da9d6c5682bfb64d679150075f40bd24722bcaf8ead41a6f32ca3

Contents?: true

Size: 819 Bytes

Versions: 6

Compression:

Stored size: 819 Bytes

Contents

require 'spec_helper'

describe Oboe::Config do
  
  it 'should have the correct default values' do
    Oboe::Config[:verbose].should == false
    Oboe::Config[:sample_rate].should == 1000000
    Oboe::Config[:tracing_mode].should == "through"
    Oboe::Config[:reporter_host].should == "127.0.0.1"
  end

  it 'should have the correct instrumentation defaults' do

    instrumentation = [ :cassandra, :dalli, :nethttp, :memcached, :memcache, :mongo,
                        :moped, :rack, :resque, :action_controller, :action_view,
                        :active_record ]

    # Verify the number of individual instrumentations
    instrumentation.count.should == 12

    instrumentation.each do |k|
      Oboe::Config[k][:enabled].should   == true
      Oboe::Config[k][:log_args].should  == true
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oboe-2.2.6 spec/support/config_spec.rb
oboe-2.2.5 spec/support/config_spec.rb
oboe-2.2.0 spec/support/config_spec.rb
oboe-2.1.4 spec/support/config_spec.rb
oboe-2.1.3 spec/support/config_spec.rb
oboe-2.1.1 spec/support/config_spec.rb