Haruka Yoshihara
null+****@clear*****
Mon Nov 26 17:13:02 JST 2012
Haruka Yoshihara 2012-11-26 17:13:02 +0900 (Mon, 26 Nov 2012) New Revision: 759f3819e816a6f87fe463b1378646c66e34a915 https://github.com/groonga/groonga-command/commit/759f3819e816a6f87fe463b1378646c66e34a915 Log: Add the parameter of select command to ordered argument Modified files: lib/groonga/command/select.rb test/command/test-select.rb Modified: lib/groonga/command/select.rb (+1 -1) =================================================================== --- lib/groonga/command/select.rb 2012-11-26 15:29:31 +0900 (fa1762b) +++ lib/groonga/command/select.rb 2012-11-26 17:13:02 +0900 (8f10218) @@ -25,7 +25,7 @@ module Groonga class << self def parameter_names - [] # TODO + [:table] end end Modified: test/command/test-select.rb (+10 -0) =================================================================== --- test/command/test-select.rb 2012-11-26 15:29:31 +0900 (bd48d1a) +++ test/command/test-select.rb 2012-11-26 17:13:02 +0900 (073ea88) @@ -17,6 +17,16 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA class SelectCommandTest < Test::Unit::TestCase + include GroongaCommandTestUtils::CommandLineCommandParser + + def test_ordered_argument + table = "Users" + command = parse("select", [table], :output_type => false) + + assert_instance_of(Groonga::Command::Select, command) + assert_equal({:table => table}, command.arguments) + end + def test_scorer select = command(:table => "Users", :filter => "age<=30", -------------- next part -------------- HTML����������������������������...Download