Skip to content

Commit

Permalink
Add missing output_type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Nov 25, 2012
1 parent 2cb3aa0 commit cf8fea5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/command/test-base.rb
Expand Up @@ -21,15 +21,17 @@ class ConvertTest < self
def test_to_uri_format
select = Groonga::Command::Base.new("select",
:table => "Users",
:filter => "age<=30")
:filter => "age<=30",
:output_type => "json")
assert_equal("/d/select.json?filter=age%3C%3D30&table=Users",
select.to_uri_format)
end

def test_to_command_format
select = Groonga::Command::Base.new("select",
:table => "Users",
:filter => "age<=30")
:filter => "age<=30",
:output_type => "json")
assert_equal("select --filter \"age<=30\" " +
"--output_type \"json\" --table \"Users\"",
select.to_command_format)
Expand Down

0 comments on commit cf8fea5

Please sign in to comment.