[Groonga-commit] groonga/fluent-plugin-droonga at 6fbd1d8 [master] test command_mapper: add a test when command name is different with method name

アーカイブの一覧に戻る

Kosuke Asami null+****@clear*****
Mon Jul 22 16:47:10 JST 2013


Kosuke Asami	2013-07-22 16:47:10 +0900 (Mon, 22 Jul 2013)

  New Revision: 6fbd1d84ae61d6a1dd004cf02fcdeb0ee9c15732
  https://github.com/groonga/fluent-plugin-droonga/commit/6fbd1d84ae61d6a1dd004cf02fcdeb0ee9c15732

  Message:
    test command_mapper: add a test when command name is different with method name

  Modified files:
    test/test_command_mapper.rb

  Modified: test/test_command_mapper.rb (+5 -0)
===================================================================
--- test/test_command_mapper.rb    2013-07-22 16:23:36 +0900 (5263795)
+++ test/test_command_mapper.rb    2013-07-22 16:47:10 +0900 (6ade59e)
@@ -25,5 +25,10 @@ class CommandMapperTest < Test::Unit::TestCase
       @command_mapper.register(:select)
       assert_equal(:select, @command_mapper[:select])
     end
+
+    def test_different_method_name
+      @command_mapper.register(:command_name => :method_name)
+      assert_equal(:method_name, @command_mapper[:command_name])
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る