test/plugin/test_out_indicative.rb in fluent-plugin-indicative-0.1.2 vs test/plugin/test_out_indicative.rb in fluent-plugin-indicative-0.1.3

- old
+ new

@@ -30,25 +30,25 @@ def test_emit d = create_driver(CONFIG) stub_request(:any, d.instance.api_url) d.run(default_tag: 'test') do - d.feed({'event_name' => 'screen_view', 'created_at' => '2015-01-01T00:00:00.000Z', 'session_id' => 'a3bd2', 'user_id' => nil, 'screen' => {'id' => 'index'}}) + d.feed({'event_name' => 'screen_view', 'created_at' => '2015-01-01T10:00:00.000Z', 'session_id' => 'a3bd2', 'user_id' => nil, 'screen' => {'id' => 'index'}}) end events = d.events assert_equal 0, events.length assert_requested :post, d.instance.api_url, headers: {'Content-Type' => 'application/json'}, body: { 'apiKey' => 'INDICATIVE_API_KEY', 'eventName' => 'screen_view', 'eventUniqueId' => 'a3bd2', 'properties' => { 'event_name' => 'screen_view', - 'created_at' => '2015-01-01T00:00:00.000Z', + 'created_at' => '2015-01-01T10:00:00.000Z', 'session_id' => 'a3bd2', 'user_id' => nil, 'screen.id' => 'index' }, - 'eventTime' => '2015-01-01T00:00:00+00:00' + 'eventTime' => '2015-01-01T10:00:00+00:00' }.to_json, times: 1 end end