Sha256: 74c4e18b2cdaecdfa8e32d7d08cb19412970021252742ee809e849964b9062f1

Contents?: true

Size: 410 Bytes

Versions: 26

Compression:

Stored size: 410 Bytes

Contents

require "spec_helper"

describe Timber::Util::HTTPEvent, :rails_23 => true do
  describe ".normalize_headers" do
    it "should ignore nils" do
      result = described_class.normalize_headers({"key" => nil})
      expect(result).to eq({})
    end

    it "should handle non strings" do
      result = described_class.normalize_headers({"key" => 1})
      expect(result).to eq({"key" => "1"})
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
timber-2.5.1 spec/timber/util/http_event_spec.rb
timber-2.5.0 spec/timber/util/http_event_spec.rb
timber-2.4.0 spec/timber/util/http_event_spec.rb
timber-2.3.4 spec/timber/util/http_event_spec.rb
timber-2.3.3 spec/timber/util/http_event_spec.rb
timber-2.3.2 spec/timber/util/http_event_spec.rb
timber-2.3.1 spec/timber/util/http_event_spec.rb
timber-2.3.0 spec/timber/util/http_event_spec.rb
timber-2.2.3 spec/timber/util/http_event_spec.rb
timber-2.2.2 spec/timber/util/http_event_spec.rb
timber-2.2.1 spec/timber/util/http_event_spec.rb
timber-2.2.0 spec/timber/util/http_event_spec.rb
timber-2.1.10 spec/timber/util/http_event_spec.rb
timber-2.1.9 spec/timber/util/http_event_spec.rb
timber-2.1.8 spec/timber/util/http_event_spec.rb
timber-2.1.7 spec/timber/util/http_event_spec.rb
timber-2.1.6 spec/timber/util/http_event_spec.rb
timber-2.1.5 spec/timber/util/http_event_spec.rb
timber-2.1.4 spec/timber/util/http_event_spec.rb
timber-2.1.3 spec/timber/util/http_event_spec.rb