spec/lib/logstasher_spec.rb in logstasher-0.3.1 vs spec/lib/logstasher_spec.rb in logstasher-0.4.0
- old
+ new
@@ -42,10 +42,10 @@
it 'appends default parameters to payload' do
LogStasher.custom_fields = []
LogStasher.add_default_fields_to_payload(payload, request)
payload[:ip].should == '10.0.0.1'
payload[:route].should == 'test#action'
- payload[:parameters].should == "a=1\nb=2\n"
+ payload[:parameters].should == {'a' => '1', 'b' => 2}
LogStasher.custom_fields.should == [:ip, :route, :parameters]
end
end
describe '.append_custom_params' do