[Groonga-commit] ranguba/chupa-text-decomposer-pdf at e370c34 [master] test: use application/octet-stream test data

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 2 12:34:28 JST 2017


Kouhei Sutou	2017-05-02 12:34:28 +0900 (Tue, 02 May 2017)

  New Revision: e370c34789e1505874a30a2ab0d8b3bdf6b56d5b
  https://github.com/ranguba/chupa-text-decomposer-pdf/commit/e370c34789e1505874a30a2ab0d8b3bdf6b56d5b

  Message:
    test: use application/octet-stream test data

  Modified files:
    test/test-pdf.rb

  Modified: test/test-pdf.rb (+8 -3)
===================================================================
--- test/test-pdf.rb    2017-05-02 11:27:29 +0900 (0369497)
+++ test/test-pdf.rb    2017-05-02 12:34:28 +0900 (53709d3)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2014  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2013-2017  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
@@ -37,15 +37,20 @@ class TestPDF < Test::Unit::TestCase
         data = ChupaText::Data.new
         data.body = ""
         data.uri = uri
+        data.mime_type = "application/octet-stream"
         data
       end
 
       def test_pdf
-        assert_true(decomposer.target?(create_data("index.pdf")))
+        assert do
+          decomposer.target?(create_data("index.pdf"))
+        end
       end
 
       def test_html
-        assert_false(decomposer.target?(create_data("index.html")))
+        assert do
+          not decomposer.target?(create_data("index.html"))
+        end
       end
     end
 
-------------- next part --------------
HTML����������������������������...
Download 



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