Sha256: 4f71ebe4acaa3ad0bfd6023443c29d769d77879b38d8aabe49ccb000857f376d

Contents?: true

Size: 687 Bytes

Versions: 23

Compression:

Stored size: 687 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'spec_helper'))

describe HTTParty::Logger do
  describe ".build" do
    subject { HTTParty::Logger }

    it "defaults level to :info" do
      logger_double = double()
      subject.build(logger_double, nil, nil).level.should == :info
    end

    it "defaults format to :apache" do
      logger_double = double()
      subject.build(logger_double, nil, nil).should be_an_instance_of(HTTParty::Logger::ApacheLogger)
    end

    it "builds :curl style logger" do
      logger_double = double()
      subject.build(logger_double, nil, :curl).should be_an_instance_of(HTTParty::Logger::CurlLogger)
    end
  end
end

Version data entries

23 entries across 22 versions & 7 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
httsoiree-0.13.3 spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
httparty-0.13.3 spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
httparty-0.13.2 spec/httparty/logger/logger_spec.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb
httsoiree-0.13.1.1 spec/httparty/logger/logger_spec.rb
httsoiree-0.13.1 spec/httparty/logger/logger_spec.rb
httparty-enterprise-edition-0.13.1.1 spec/httparty/logger/logger_spec.rb
httparty-enterprise-edition-0.13.1 spec/httparty/logger/logger_spec.rb
httparty-0.13.1 spec/httparty/logger/logger_spec.rb