Navigation Menu

Skip to content

Commit

Permalink
Update tests for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Feb 6, 2014
1 parent dbb6498 commit a485b5a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/unit/plugin/handler/test_search.rb
Expand Up @@ -78,13 +78,17 @@ def setup_data

class NoParameterTest < self
def test_empty
assert_search({}, {})
assert_raise(Droonga::Searcher::NoQuery) do
search({})
end
end
end

class QueriesTest < self
def test_empty
assert_search({}, {"queries" => {}})
assert_raise(Droonga::Searcher::NoQuery) do
search({"queries" => {}})
end
end
end

Expand Down

0 comments on commit a485b5a

Please sign in to comment.