diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-05-29 00:00:46 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-05-29 00:00:46 -0600 |
| commit | b5ff6055fcc2afe1778a53d8c632116441f46711 (patch) | |
| tree | b8ef435fbdbe392fb8fcf04f149f9bf5965afc4f /test/converter_test.rb | |
| parent | 42c9582d29050fa655854b9e2464e0abf1e3ff0b (diff) | |
use join instead of * to join elements of an array in test suite [skip ci]
Diffstat (limited to 'test/converter_test.rb')
| -rw-r--r-- | test/converter_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/converter_test.rb b/test/converter_test.rb index d7209ef6..4ecf0199 100644 --- a/test/converter_test.rb +++ b/test/converter_test.rb @@ -538,11 +538,11 @@ context 'Converter' do end def document node - ['<!DOCTYPE html>', '<html>', '<body>', node.content, '</body>', '</html>'] * %(\n) + ['<!DOCTYPE html>', '<html>', '<body>', node.content, '</body>', '</html>'].join ?\n end def paragraph node - ['<div class="paragraph">', %(<p>#{node.content}</p>), '</div>'] * %(\n) + ['<div class="paragraph">', %(<p>#{node.content}</p>), '</div>'].join ?\n end end @@ -575,11 +575,11 @@ context 'Converter' do alias handles? respond_to? def document node - ['<!DOCTYPE html>', '<html>', '<body>', node.content, '</body>', '</html>'] * %(\n) + ['<!DOCTYPE html>', '<html>', '<body>', node.content, '</body>', '</html>'].join ?\n end def paragraph node - ['<div class="paragraph">', %(<p>#{node.content}</p>), '</div>'] * %(\n) + ['<div class="paragraph">', %(<p>#{node.content}</p>), '</div>'].join ?\n end end |
