test/plugin/test_out_map.rb in fluent-plugin-map-0.2.1 vs test/plugin/test_out_map.rb in fluent-plugin-map-0.3.0

- old
+ new

@@ -48,13 +48,13 @@ assert_equal ["tag1", time, record], events[0] assert_equal ["tag2", time, record], events[1] end def test_syntax_error - tag = "tag" - time = event_time('2012-10-10 10:10:10') - record = {'code' => '300'} + _tag = "tag" + _time = event_time('2012-10-10 10:10:10') + _record = {'code' => '300'} #map is syntax error syntax_error_config = %[ map tag. ] @@ -114,13 +114,13 @@ assert_equal 1, events.length assert_equal ["newtag", time, record], events[0] end def test_config_error_tag - tag = "tag" - time = event_time('2012-10-10 10:10:10') - record = {'code' => '300'} + _tag = "tag" + _time = event_time('2012-10-10 10:10:10') + _record = {'code' => '300'} #require time assert_raise(Fluent::ConfigError){ create_driver %[ time time @@ -128,12 +128,12 @@ ] } end def test_config_error_time - tag = "tag" - record = {'code' => '300'} + _tag = "tag" + _record = {'code' => '300'} #require time assert_raise(Fluent::ConfigError){ create_driver %[ tag "newtag" @@ -141,12 +141,12 @@ ] } end def test_config_error_record - tag = "tag" - time = Time.local(2012, 10, 10, 10, 10, 0).to_i + _tag = "tag" + _time = Time.local(2012, 10, 10, 10, 10, 0).to_i #require record assert_raise(Fluent::ConfigError){ create_driver %[ tag ("newtag") @@ -154,13 +154,13 @@ ] } end def test_config_error_multi - tag = "tag" - time = event_time('2012-10-10 10:10:10') - record = {'code' => '300'} + _tag = "tag" + _time = event_time('2012-10-10 10:10:10') + _record = {'code' => '300'} #require time assert_raise(Fluent::ConfigError){ create_driver %[ tag ("newtag") @@ -170,12 +170,12 @@ ] } end def test_config_error_sleep - tag = 'tag' - time = event_time('2012-10-10 10:10:10') - record = {'code' => '300'} + _tag = 'tag' + _time = event_time('2012-10-10 10:10:10') + _record = {'code' => '300'} assert_raise(SyntaxError) { create_driver %[ key ("newtag") time sleep 10