[Groonga-commit] ranguba/rroonga at 6b06f6c [master] test: don't use unsuitable assertion

Back to archive index

Masafumi Yokoyama null+****@clear*****
Fri Jul 10 18:15:05 JST 2015


Masafumi Yokoyama	2015-07-10 18:15:05 +0900 (Fri, 10 Jul 2015)

  New Revision: 6b06f6cabe57b696b368b6287d6721a922af9234
  https://github.com/ranguba/rroonga/commit/6b06f6cabe57b696b368b6287d6721a922af9234

  Message:
    test: don't use unsuitable assertion
    
    Because `Groonga::Flushable#flush`'s return value is explicitly undefined.
    
    TODO: Use meaningful assertion such as file size check if possible.

  Modified files:
    test/test-flushable.rb

  Modified: test/test-flushable.rb (+3 -1)
===================================================================
--- test/test-flushable.rb    2015-07-10 17:38:02 +0900 (d066060)
+++ test/test-flushable.rb    2015-07-10 18:15:05 +0900 (96cb029)
@@ -21,6 +21,8 @@ class FlushableTest < Test::Unit::TestCase
   def test_flush
     table = Groonga::Hash.create
     table.extend(Groonga::Flushable)
-    assert_nil(table.flush)
+    assert_nothing_raised do
+      table.flush
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



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