[Groonga-commit] ranguba/rroonga at dae0075 [master] Include Flushable module to Groonga::Table

Back to archive index

Masafumi Yokoyama null+****@clear*****
Mon Jul 13 11:02:59 JST 2015


Masafumi Yokoyama	2015-07-13 11:02:59 +0900 (Mon, 13 Jul 2015)

  New Revision: dae00752308b748448cd3bc2f352e00c959aa309
  https://github.com/ranguba/rroonga/commit/dae00752308b748448cd3bc2f352e00c959aa309

  Message:
    Include Flushable module to Groonga::Table

  Modified files:
    ext/groonga/rb-grn-table.c
    test/test-flushable.rb

  Modified: ext/groonga/rb-grn-table.c (+1 -0)
===================================================================
--- ext/groonga/rb-grn-table.c    2015-07-13 10:56:23 +0900 (f03caf5)
+++ ext/groonga/rb-grn-table.c    2015-07-13 11:02:59 +0900 (7bf38dc)
@@ -2571,6 +2571,7 @@ rb_grn_init_table (VALUE mGrn)
     rb_define_alloc_func(rb_cGrnTable, rb_grn_table_alloc);
 
     rb_include_module(rb_cGrnTable, rb_mEnumerable);
+    rb_include_module(rb_cGrnTable, rb_mGrnFlushable);
 
     rb_define_method(rb_cGrnTable, "initialize", rb_grn_table_initialize, 0);
 

  Modified: test/test-flushable.rb (+7 -0)
===================================================================
--- test/test-flushable.rb    2015-07-13 10:56:23 +0900 (237da2d)
+++ test/test-flushable.rb    2015-07-13 11:02:59 +0900 (ead1bbc)
@@ -18,6 +18,13 @@ class FlushableTest < Test::Unit::TestCase
 
   setup :setup_database
 
+  def test_flush_table
+    table = Groonga::Hash.create
+    assert_nothing_raised do
+      table.flush
+    end
+  end
+
   def test_flush
     table = Groonga::Hash.create
     table.extend(Groonga::Flushable)
-------------- next part --------------
HTML����������������������������...
Télécharger 



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