From 4e7170f06461d9d20c6696204e3a50c5ea43faf5 Mon Sep 17 00:00:00 2001 From: TAGOMORI Satoshi Date: Thu, 24 Mar 2016 14:26:25 +0900 Subject: [PATCH] fix to use different name from others --- test/plugin/test_storage.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/plugin/test_storage.rb b/test/plugin/test_storage.rb index cf62bd0d6e..901cbae9be 100644 --- a/test/plugin/test_storage.rb +++ b/test/plugin/test_storage.rb @@ -9,11 +9,15 @@ class BareStorage < Fluent::Plugin::Storage Fluent::Plugin.register_storage('bare', self) end -class ExampleStorage < Fluent::Plugin::Storage +class BasicStorage < Fluent::Plugin::Storage Fluent::Plugin.register_storage('example', self) attr_reader :data, :saved + def initialize + super + @data = @saved = nil + end def load @data = {} end @@ -107,7 +111,7 @@ class StorageTest < Test::Unit::TestCase setup do plugin = DummyPlugin.new plugin.configure(config_element('ROOT', '', {'@id' => '1'})) - @s = ExampleStorage.new + @s = BasicStorage.new @s.configure(config_element()) @s.owner = plugin end @@ -115,7 +119,7 @@ class StorageTest < Test::Unit::TestCase test 'load/save works well as plugin internal state operations' do plugin = DummyPlugin.new plugin.configure(config_element('ROOT', '', {'@id' => '0'})) - s = ExampleStorage.new + s = BasicStorage.new s.owner = plugin assert_nothing_raised{ s.load }