Kouhei Sutou
null+****@clear*****
Fri Apr 11 16:32:14 JST 2014
Kouhei Sutou 2014-04-11 16:32:14 +0900 (Fri, 11 Apr 2014) New Revision: a4462a5dfaa4a944a2950aa8e3e581bb08917868 https://github.com/droonga/fluent-plugin-droonga/commit/a4462a5dfaa4a944a2950aa8e3e581bb08917868 Message: test: group column type tests Modified files: test/unit/catalog/test_schema.rb Modified: test/unit/catalog/test_schema.rb (+11 -11) =================================================================== --- test/unit/catalog/test_schema.rb 2014-04-11 12:46:34 +0900 (ddcaa03) +++ test/unit/catalog/test_schema.rb 2014-04-11 16:32:14 +0900 (2ff9361) @@ -184,18 +184,18 @@ class CatalogSchemaTest < Test::Unit::TestCase {}).name) end - def test_type - assert_equal("Scalar", - create_column("column_name", - { - "type" => "Scalar" - }).type) - end + class TypeTest < self + def type(data) + create_column("column_name", data).type + end - def test_type_default - assert_equal("Scalar", - create_column("column_name", - {}).type) + def test_scalar + assert_equal("Scalar", type("type" => "Scalar")) + end + + def test_default + assert_equal("Scalar", type({})) + end end def test_value_type -------------- next part -------------- HTML����������������������������...Download