spec/lib/logstasher/log_subscriber_spec.rb in logstasher-0.3.1 vs spec/lib/logstasher/log_subscriber_spec.rb in logstasher-0.4.0
- old
+ new
@@ -153,10 +153,10 @@
request.stub(:params => event.payload[:params])
LogStasher.add_default_fields_to_payload(event.payload, request)
subscriber.process_action(event)
log_output.json['@fields']['ip'].should == '10.0.0.1'
log_output.json['@fields']['route'].should == 'home#index'
- log_output.json['@fields']['parameters'].should == "foo=bar\n"
+ log_output.json['@fields']['parameters'].should == {'foo' => 'bar'}
end
end
describe "with append_custom_params block specified" do
before do