[Groonga-commit] groonga/groonga-command at 6ca62fe [master] TableRemove: recursive -> dependent

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 17 12:30:04 JST 2016


Kouhei Sutou	2016-03-17 12:30:04 +0900 (Thu, 17 Mar 2016)

  New Revision: 6ca62fe75a65ddb012e50f784521e83bc57c3c87
  https://github.com/groonga/groonga-command/commit/6ca62fe75a65ddb012e50f784521e83bc57c3c87

  Message:
    TableRemove: recursive -> dependent

  Modified files:
    lib/groonga/command/table-remove.rb
    test/command/test-table-remove.rb

  Modified: lib/groonga/command/table-remove.rb (+4 -4)
===================================================================
--- lib/groonga/command/table-remove.rb    2016-03-16 17:39:36 +0900 (1bf5f96)
+++ lib/groonga/command/table-remove.rb    2016-03-17 12:30:04 +0900 (bacb455)
@@ -25,7 +25,7 @@ module Groonga
         def parameter_names
           [
             :name,
-            :recursive,
+            :dependent,
           ]
         end
       end
@@ -37,11 +37,11 @@ module Groonga
         self[:name]
       end
 
-      # @return [Boolean] `recursive` parameter value.
+      # @return [Boolean] `dependent` parameter value.
       #
       # @since 1.1.8
-      def recursive?
-        self[:recursive] != "no"
+      def dependent?
+        self[:dependent] != "no"
       end
     end
   end

  Modified: test/command/test-table-remove.rb (+7 -7)
===================================================================
--- test/command/test-table-remove.rb    2016-03-16 17:39:36 +0900 (8efa104)
+++ test/command/test-table-remove.rb    2016-03-17 12:30:04 +0900 (8164496)
@@ -25,12 +25,12 @@ class TableRemoveCommandTest < Test::Unit::TestCase
   class ConstructorTest < self
     def test_ordered_arguments
       name = "Users"
-      recursive = "yes"
+      dependent = "yes"
 
-      command = table_remove_command({}, [name, recursive])
+      command = table_remove_command({}, [name, dependent])
       assert_equal({
                      :name => name,
-                     :recursive => recursive,
+                     :dependent => dependent,
                    },
                    command.arguments)
     end
@@ -43,19 +43,19 @@ class TableRemoveCommandTest < Test::Unit::TestCase
     end
   end
 
-  class RecursiveTest < self
+  class DependentTest < self
     class ReaderTest < self
       def test_default
         command = table_remove_command
         assert do
-          command.recursive?
+          command.dependent?
         end
       end
 
       def test_no
-        command = table_remove_command(:recursive => "no")
+        command = table_remove_command(:dependent => "no")
         assert do
-          not command.recursive?
+          not command.dependent?
         end
       end
     end
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index