Kouhei Sutou
null+****@clear*****
Tue Mar 15 23:56:07 JST 2016
Kouhei Sutou 2016-03-15 23:56:07 +0900 (Tue, 15 Mar 2016) New Revision: c75b4f38393a2635f95f05745ea75375ba3ca69c https://github.com/groonga/groonga-command/commit/c75b4f38393a2635f95f05745ea75375ba3ca69c Message: Add TableRemove#name Modified files: lib/groonga/command/table-remove.rb test/command/test-table-remove.rb Modified: lib/groonga/command/table-remove.rb (+8 -3) =================================================================== --- lib/groonga/command/table-remove.rb 2016-03-13 13:05:53 +0900 (5f6d82b) +++ lib/groonga/command/table-remove.rb 2016-03-15 23:56:07 +0900 (01aa2e2) @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2012 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2012-2016 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -30,6 +28,13 @@ module Groonga ] end end + + # @return [String] `name` parameter value. + # + # @since 1.1.8 + def name + self[:name] + end end end end Modified: test/command/test-table-remove.rb (+8 -3) =================================================================== --- test/command/test-table-remove.rb 2016-03-13 13:05:53 +0900 (8c8c35c) +++ test/command/test-table-remove.rb 2016-03-15 23:56:07 +0900 (55cc367) @@ -1,6 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2012-2013 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2012-2016 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -35,4 +33,11 @@ class TableRemoveCommandTest < Test::Unit::TestCase command.arguments) end end + + class NameTest < self + def test_reader + command = table_remove_command(:name => "Users") + assert_equal("Users", command.name) + end + end end -------------- next part -------------- HTML����������������������������...Download