spec/timber/events/http_request_spec.rb in timber-2.5.1 vs spec/timber/events/http_request_spec.rb in timber-2.6.0.pre.beta1

- old
+ new

@@ -24,9 +24,9 @@ end it "should handle header encoding" do referer = 'http://www.metrojobb.se/jobb/1013893-skadeadministratör'.force_encoding('ASCII-8BIT') event = described_class.new(:headers => {'Referer' => referer}, :host => 'my.host.com', :method => 'GET', :path => '/path', :scheme => 'https') - expect(event.headers.key?("referer")).to eq(false) + expect(event.headers["referer"].encoding).to eq(::Encoding::UTF_8) end end end \ No newline at end of file