aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorTeddy Wing2017-06-09 12:33:32 +0200
committerTeddy Wing2017-06-09 12:33:32 +0200
commit913cdad28b20ade05cccf262b096b02db2e0ab93 (patch)
tree352eab75b7f0b9a7d14b803ec52ca932abe7cefc /spec
parent652c63e3d5e9f842d88ea9bc3ae027712922f69a (diff)
downloadchouette-core-913cdad28b20ade05cccf262b096b02db2e0ab93.tar.bz2
TableBuilder spec: Remove newline from expected HTMl output
The actual HTML output doesn't have a newline at the end. This isn't important for the test, so just remove the extra newline from the expected output that's caused by the heredoc terminator. Our test is finally green! Refs #3479
Diffstat (limited to 'spec')
-rw-r--r--spec/helpers/table_builder_helper_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index f3a6001d0..165e9c3f4 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -116,7 +116,7 @@ describe TableBuilderHelper, type: :helper do
beautified_html = HtmlBeautifier.beautify(html_str, indent: ' ')
- expect(beautified_html).to eq(expected)
+ expect(beautified_html).to eq(expected.chomp)
end
end
end