[Groonga-commit] ranguba/groonga-client at 989371f [master] test: don't use the default value in test

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 27 11:00:11 JST 2017


Kouhei Sutou	2017-04-27 11:00:11 +0900 (Thu, 27 Apr 2017)

  New Revision: 989371f4f9664596fa1d49e81ce3201c342d2e72
  https://github.com/ranguba/groonga-client/commit/989371f4f9664596fa1d49e81ce3201c342d2e72

  Message:
    test: don't use the default value in test
    
    We can't test the default value in implementation with it.

  Modified files:
    test/request/select/test-filter.rb

  Modified: test/request/select/test-filter.rb (+3 -6)
===================================================================
--- test/request/select/test-filter.rb    2017-04-27 10:59:50 +0900 (18028a7)
+++ test/request/select/test-filter.rb    2017-04-27 11:00:11 +0900 (1b9ce71)
@@ -213,12 +213,9 @@ title == "[\"He\\ llo\"]"
 
   sub_test_case("Filter") do
     sub_test_case("#geo_in_circle") do
-      def geo_in_circle(point,
-                        center, radious_or_point,
-                        approximate_type="rectangle")
-        @request.filter.geo_in_circle(point,
-                                      center, radious_or_point,
-                                      approximate_type).to_parameters
+      def geo_in_circle(*args)
+        @request.filter.geo_in_circle(*args).to_parameters
+      end
 
       test("column") do
         assert_equal({
-------------- next part --------------
HTML����������������������������...
Descargar 



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