YUKI Hiroshi
null+****@clear*****
Wed Nov 27 21:31:52 JST 2013
YUKI Hiroshi 2013-11-27 21:31:52 +0900 (Wed, 27 Nov 2013) New Revision: 9481b3bc9fb79aaaade9c205267f7db1d72af055 https://github.com/droonga/fluent-plugin-droonga/commit/9481b3bc9fb79aaaade9c205267f7db1d72af055 Message: Define stub "post" method for tested plugins Modified files: test/unit/helper/plugin_helper.rb Modified: test/unit/helper/plugin_helper.rb (+6 -0) =================================================================== --- test/unit/helper/plugin_helper.rb 2013-11-27 21:31:10 +0900 (2c2d9c0) +++ test/unit/helper/plugin_helper.rb 2013-11-27 21:31:52 +0900 (0f7fd0b) @@ -22,11 +22,17 @@ module PluginHelper stub(@plugin).emit do |*message| @messages << message end + + @posted = [] + stub(@plugin).post do |*message| + @posted << message + end end def teardown_plugin @plugin = nil @worker = nil @messages = nil + @posted = nil end end -------------- next part -------------- HTML����������������������������...Download