YUKI Hiroshi
null+****@clear*****
Wed Apr 23 18:50:06 JST 2014
YUKI Hiroshi 2014-04-23 18:50:06 +0900 (Wed, 23 Apr 2014) New Revision: 4ce44126ab3afdbf3c277707ce428160b2f7adb3 https://github.com/droonga/droonga-engine/commit/4ce44126ab3afdbf3c277707ce428160b2f7adb3 Message: test: Fix expected result of column_list Modified files: test/unit/plugins/groonga/test_column_list.rb Modified: test/unit/plugins/groonga/test_column_list.rb (+9 -4) =================================================================== --- test/unit/plugins/groonga/test_column_list.rb 2014-04-23 18:44:19 +0900 (872506f) +++ test/unit/plugins/groonga/test_column_list.rb 2014-04-23 18:50:06 +0900 (3916bad) @@ -75,7 +75,7 @@ class ColumnListTest < GroongaHandlerTest {"table" => "Books"}) expected = [ COLUMNS_HEADER, - [257, "title", "fix", "ShortText", "COLUMN_SCALAR", "Foo", "ShortText", []], + [257, "title", path, "fix", "COLUMN_SCALAR", "Foo", "ShortText", []], ] assert_equal(expected, response.last) end @@ -91,7 +91,7 @@ class ColumnListTest < GroongaHandlerTest {"table" => "Books"}) expected = [ COLUMNS_HEADER, - [257, "authors", "var", "ShortText", "COLUMN_SCALAR", "Foo", "ShortText", []], + [257, "authors", path, "var", "COLUMN_VECTOR", "Foo", "ShortText", []], ] assert_equal(expected, response.last) end @@ -108,10 +108,15 @@ class ColumnListTest < GroongaHandlerTest {"table" => "Books"}) expected = [ COLUMNS_HEADER, - [257, "title", "fix", "ShortText", "COLUMN_SCALAR", "Foo", "ShortText", []], - [258, "entry_title", "index", "ShortText", "COLUMN_INDEX", "Foo", "Foo", ["Foo.age"]], + [257, "title", path, "fix", "COLUMN_SCALAR", "Foo", "ShortText", []], + [258, "entry_title", path, "index", "COLUMN_INDEX", "Foo", "Foo", ["Foo.age"]], ] assert_equal(expected, response.last) end + + private + def path + @context.database.path + end end end -------------- next part -------------- HTML����������������������������...Download