Sha256: f1bf141e54f1fd30eb75c6bf54727b4b9897b3757a8c47bc1e7ffe53261b518a

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 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({"key" => nil})
    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

4 entries across 4 versions & 1 rubygems

Version Path
timber-2.1.0.rc3 spec/timber/util/http_event_spec.rb
timber-2.1.0.rc2 spec/timber/util/http_event_spec.rb
timber-2.1.0.rc1 spec/timber/util/http_event_spec.rb
timber-2.0.24 spec/timber/util/http_event_spec.rb