[Groonga-commit] ranguba/rroonga at 1827c1a [master] test: use recognizable name for variable

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 17 12:04:30 JST 2014


Kouhei Sutou	2014-08-17 12:04:30 +0900 (Sun, 17 Aug 2014)

  New Revision: 1827c1a94e3906e83a1762a70c814be3f99e4b7a
  https://github.com/ranguba/rroonga/commit/1827c1a94e3906e83a1762a70c814be3f99e4b7a

  Message:
    test: use recognizable name for variable

  Modified files:
    test/test-exception.rb

  Modified: test/test-exception.rb (+6 -6)
===================================================================
--- test/test-exception.rb    2014-08-17 12:02:03 +0900 (6859823)
+++ test/test-exception.rb    2014-08-17 12:04:30 +0900 (65e3fcd)
@@ -100,7 +100,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
 
   def setup
     setup_database
-    @context = create_sub_context
+    @sub_context = create_sub_context
   end
 
   def test_database_each
@@ -108,7 +108,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
 
     assert_error do
       over_limit do
-        @context.database.each do
+        @sub_context.database.each do
         end
       end
     end
@@ -119,7 +119,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
 
     assert_error do
       over_limit do
-        @context["Users"]
+        @sub_context["Users"]
       end
     end
   end
@@ -131,7 +131,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
       end
     end
 
-    table = @context["Users"]
+    table = @sub_context["Users"]
     assert_error do
       over_limit do
         table.columns
@@ -152,7 +152,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
       end
     end
 
-    column = @context["Users"].column("Bookmarks_user")
+    column = @sub_context["Users"].column("Bookmarks_user")
     assert_error do
       over_limit do
         column.sources
@@ -223,7 +223,7 @@ class TooManyOpenFilesTest < Test::Unit::TestCase
   end
 
   def create_reference_table(key)
-    Groonga::Hash.create(:context => @context,
+    Groonga::Hash.create(:context => @sub_context,
                          :name => "Bookmarks",
                          :key_type => key)
   end
-------------- next part --------------
HTML����������������������������...
다운로드 



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