Navigation Menu

Skip to content

Commit

Permalink
test: Update testing queries
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 28, 2014
1 parent d1899e7 commit c41c5dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/unit/plugins/groonga/select/test_adapter_input.rb
Expand Up @@ -353,7 +353,8 @@ def test_sorted
"drilldown" => "a,b",
"drilldown_output_columns" => "_key,_nsubrecs",
"drilldown_sortby" => "-_nsubrecs",
"drilldown_offset" => "0",
"drilldown_offset" => "1",
"drilldown_limit" => "2",
})

expected_sort_by = {
Expand Down Expand Up @@ -388,11 +389,13 @@ def test_sorted
assert_equal(expected_search_request, convert(select_request))
end

def test_pagination
def test_only_pagination
select_request = base_request.merge({
"drilldown" => "a,b",
"drilldown_output_columns" => "_key,_nsubrecs",
"drilldown_sortby" => "-_nsubrecs"
"drilldown_offset" => "1",
"drilldown_limit" => "2",
})

expected_sort_by = {
Expand Down

0 comments on commit c41c5dc

Please sign in to comment.