Sha256: 925d5f482223edb9bd330168545da8f780a915a9bf1727f739f4bcacbef721ea

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

# encoding: UTF-8

require "spec_helper"

describe Timber::Events::HTTPResponse, :rails_23 => true do
  describe ".initialize" do
    it "should coerce content_length into an integer" do
      event = described_class.new(:content_length => "123", :status => 200, :time_ms => 1)
      expect(event.content_length).to eq(123)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
timber-2.6.2 spec/timber/events/http_response_spec.rb
timber-2.6.1 spec/timber/events/http_response_spec.rb
timber-2.6.0 spec/timber/events/http_response_spec.rb
timber-2.6.0.pre.beta2 spec/timber/events/http_response_spec.rb
timber-2.6.0.pre.beta1 spec/timber/events/http_response_spec.rb
timber-2.5.1 spec/timber/events/http_response_spec.rb