[Groonga-commit] ranguba/chupa-text-http-server at 432b1a5 [master] test: update expected

Back to archive index
Kouhei Sutou null+****@clear*****
Mon Mar 25 18:52:32 JST 2019


Kouhei Sutou	2019-03-25 18:52:32 +0900 (Mon, 25 Mar 2019)

  Revision: 432b1a50d94812be7cd7f1d107ac5171301721be
  https://github.com/ranguba/chupa-text-http-server/commit/432b1a50d94812be7cd7f1d107ac5171301721be

  Message:
    test: update expected

  Modified files:
    .travis.yml
    test/controllers/extractions_controller_test.rb

  Modified: .travis.yml (+3 -1)
===================================================================
--- .travis.yml    2019-03-25 18:35:18 +0900 (eab4e6f)
+++ .travis.yml    2019-03-25 18:52:32 +0900 (141af60)
@@ -1,8 +1,10 @@
 notifications:
   webhooks:
     - https://webhook.commit-email.info/
+
 rvm:
   - 2.4
   - 2.5
   - 2.6
-  - ruby-head
+
+dist: xenial

  Modified: test/controllers/extractions_controller_test.rb (+18 -6)
===================================================================
--- test/controllers/extractions_controller_test.rb    2019-03-25 18:35:18 +0900 (51432c5)
+++ test/controllers/extractions_controller_test.rb    2019-03-25 18:52:32 +0900 (20e2548)
@@ -116,10 +116,16 @@ class ExtractionsControllerTest < ActionDispatch::IntegrationTest
 
         test "Excel" do
           assert_extract([
+                           ["Hello", ""],
                            [
-                             "Hello",
-                             "Sheet1 A1 Sheet1 A2 Sheet1 B1 " +
-                             "Sheet2 A1 Sheet2 A2 Sheet2 B1",
+                             nil,
+                             "Sheet1 A1\tSheet1 B1\n" +
+                             "Sheet1 A2\n",
+                           ],
+                           [
+                             nil,
+                             "Sheet2 A1\tSheet2 B1\n" +
+                             "Sheet2 A2\n",
                            ],
                          ],
                          "hello.xlsx")
@@ -273,10 +279,16 @@ class ExtractionsControllerTest < ActionDispatch::IntegrationTest
 
       test "Excel" do
         assert_extract([
+                         ["Hello", ""],
                          [
-                           "Hello",
-                           "Sheet1 A1\nSheet1 A2\nSheet1 B1\n" +
-                           "Sheet2 A1\nSheet2 A2\nSheet2 B1\n",
+                           nil,
+                           "Sheet1 A1\tSheet1 B1\n" +
+                           "Sheet1 A2\n",
+                         ],
+                         [
+                           nil,
+                           "Sheet2 A1\tSheet2 B1\n" +
+                           "Sheet2 A2\n",
                          ],
                        ],
                        "hello.xlsx")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190325/924c0c64/attachment-0001.html>


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