Navigation Menu

Skip to content

Commit

Permalink
test: Fix expected result of column_list
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 23, 2014
1 parent c065453 commit 4ce4412
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions test/unit/plugins/groonga/test_column_list.rb
Expand Up @@ -75,7 +75,7 @@ def test_fix_column
{"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
Expand All @@ -91,7 +91,7 @@ def test_var_column
{"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
Expand All @@ -108,10 +108,15 @@ def test_index_column
{"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

0 comments on commit 4ce4412

Please sign in to comment.