[Groonga-commit] droonga/fluent-plugin-droonga at 9d84fcc [master] Assert raised exception correctly for an unknown table

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Dec 26 11:59:03 JST 2013


YUKI Hiroshi	2013-12-26 11:59:03 +0900 (Thu, 26 Dec 2013)

  New Revision: 9d84fcca5e7929492e213d756996f808fab64de0
  https://github.com/droonga/fluent-plugin-droonga/commit/9d84fcca5e7929492e213d756996f808fab64de0

  Message:
    Assert raised exception correctly for an unknown table

  Modified files:
    test/unit/plugin/handler/test_add.rb

  Modified: test/unit/plugin/handler/test_add.rb (+3 -2)
===================================================================
--- test/unit/plugin/handler/test_add.rb    2013-12-26 13:07:30 +0900 (54a9336)
+++ test/unit/plugin/handler/test_add.rb    2013-12-26 11:59:03 +0900 (2f0f57a)
@@ -122,8 +122,9 @@ class AddHandlerTest < Test::Unit::TestCase
         "table"  => "Nonexistent",
         "values" => {},
       }
-      process(request)
-      assert_equal([[false]], @messenger.values)
+      assert_raise(Droonga::AddHandler::UnknownTable) do
+        process(request)
+      end
     end
   end
 end
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index