diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-28 09:57:17 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-28 11:37:19 -0500 |
commit | 0be3187a56603e26b677d31880be0dc21072f687 (patch) | |
tree | 3f2763bfed60f9fe09468303d6a23468f578c7a9 /spec/helpers | |
parent | 31b87b8cab2c2daebb99657046e5d121b48499ad (diff) | |
download | gitlab-ce-0be3187a56603e26b677d31880be0dc21072f687.tar.gz |
Pull preserve into render helpers
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/events_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/events_helper_spec.rb b/spec/helpers/events_helper_spec.rb index a7c3c281083..c3bd0cb3542 100644 --- a/spec/helpers/events_helper_spec.rb +++ b/spec/helpers/events_helper_spec.rb @@ -56,7 +56,7 @@ describe EventsHelper do it 'preserves code color scheme' do input = "```ruby\ndef test\n 'hello world'\nend\n```" - expected = '<pre class="code highlight js-syntax-highlight ruby">' \ + expected = "\n<pre class=\"code highlight js-syntax-highlight ruby\">" \ "<code><span class=\"line\"><span class=\"k\">def</span> <span class=\"nf\">test</span>...</span>\n" \ "</code></pre>" expect(helper.event_note(input)).to eq(expected) |