[Groonga-commit] ranguba/activegroonga at 7a96c16 [master] Suppress warnings

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Aug 8 22:48:57 JST 2018


Kouhei Sutou	2018-08-08 22:48:57 +0900 (Wed, 08 Aug 2018)

  New Revision: 7a96c160d09f4cd6f27d57422bd34544dc064980
  https://github.com/ranguba/activegroonga/commit/7a96c160d09f4cd6f27d57422bd34544dc064980

  Message:
    Suppress warnings

  Modified files:
    test/run-test.rb
    test/test-base.rb
    test/test-persistence.rb

  Modified: test/run-test.rb (+2 -2)
===================================================================
--- test/run-test.rb    2018-07-31 10:00:54 +0900 (d4abe65)
+++ test/run-test.rb    2018-08-08 22:48:57 +0900 (7010920)
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 #
-# Copyright (C) 2009-2011  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2009-2018  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
@@ -15,7 +15,7 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $VERBOSE = true
+$VERBOSE = true
 
 require 'pathname'
 require 'shellwords'

  Modified: test/test-base.rb (+2 -2)
===================================================================
--- test/test-base.rb    2018-07-31 10:00:54 +0900 (e76f91c)
+++ test/test-base.rb    2018-08-08 22:48:57 +0900 (c64b971)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2014  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2009-2018  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
@@ -43,7 +43,7 @@ class TestBase < Test::Unit::TestCase
     assert_true(send_mail.save)
     assert_not_nil(send_mail.id)
 
-    reloaded_send_mail = Task.find(send_mail.id)
+    _reloaded_send_mail = Task.find(send_mail.id)
     assert_equal("send mails", send_mail.name)
   end
 

  Modified: test/test-persistence.rb (+5 -5)
===================================================================
--- test/test-persistence.rb    2018-07-31 10:00:54 +0900 (fa07a1b)
+++ test/test-persistence.rb    2018-08-08 22:48:57 +0900 (49defd2)
@@ -1,4 +1,4 @@
-# Copyright (C) 2010-2013  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2010-2018  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
@@ -32,8 +32,8 @@ class TestPersistence < Test::Unit::TestCase
 
   class TestCreate < self
     def test_hash
-      groonga = Site.create(:key => "http://groonga.org/",
-                            :title => "groonga")
+      Site.create(:key => "http://groonga.org/",
+                  :title => "groonga")
       found_groonga = Site.find("http://groonga.org/")
       assert_equal(["http://groonga.org/", "groonga"],
                    [found_groonga.key, found_groonga.title])
@@ -43,8 +43,8 @@ class TestPersistence < Test::Unit::TestCase
       def test_have_key
         groonga = Site.create(:key => "http://groonga.org/",
                               :title => "groonga")
-        doc = Page.create(:key => "http://groonga.org/doc/",
-                          :site => groonga)
+        Page.create(:key => "http://groonga.org/doc/",
+                    :site => groonga)
         found_doc = Page.find("http://groonga.org/doc/")
         assert_equal(groonga.key, found_doc.site.key)
       end
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180808/7bd5c30e/attachment-0001.htm 



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