Kosuke Asami
null+****@clear*****
Mon Jul 22 13:20:27 JST 2013
Kosuke Asami 2013-07-22 13:20:27 +0900 (Mon, 22 Jul 2013) New Revision: add891b087347c9e57c74c351f8853791de99fa0 https://github.com/groonga/fluent-plugin-droonga/commit/add891b087347c9e57c74c351f8853791de99fa0 Message: test add: move a routine that sets up schema to appropriate test class Modified files: test/plugin/test_handler_add.rb Modified: test/plugin/test_handler_add.rb (+11 -7) =================================================================== --- test/plugin/test_handler_add.rb 2013-07-22 13:19:36 +0900 (78b6561) +++ test/plugin/test_handler_add.rb 2013-07-22 13:20:27 +0900 (3c27197) @@ -35,13 +35,6 @@ class AddHandlerTest < Test::Unit::TestCase end def setup_schema - Groonga::Schema.define do |schema| - schema.create_table("Users", - :type => :hash, - :key_type => :short_text) do |table| - table.short_text("country") - end - end end def teardown_database @@ -61,6 +54,17 @@ class AddHandlerTest < Test::Unit::TestCase public class TestHasKey < self + def setup + super + Groonga::Schema.define do |schema| + schema.create_table("Users", + :type => :hash, + :key_type => :short_text) do |table| + table.short_text("country") + end + end + end + def test_add_with_empty_values request = { "table" => "Users", -------------- next part -------------- HTML����������������������������...Download