Skip to content

Commit

Permalink
test: update expected
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 25, 2019
1 parent 9ab13f0 commit 432b1a5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
@@ -1,8 +1,10 @@
notifications:
webhooks:
- https://webhook.commit-email.info/

rvm:
- 2.4
- 2.5
- 2.6
- ruby-head

dist: xenial
24 changes: 18 additions & 6 deletions test/controllers/extractions_controller_test.rb
Expand Up @@ -116,10 +116,16 @@ def assert_extract(expected, fixture_name)

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")
Expand Down Expand Up @@ -273,10 +279,16 @@ def assert_extract(expected, fixture_name)

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")
Expand Down

0 comments on commit 432b1a5

Please sign in to comment.