diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-09 21:46:02 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-10 08:26:21 -0500 |
commit | 02650d97e5e3134c33514334f4721f5b4d1ebd26 (patch) | |
tree | ead052328a33ff03f336e099d680146a4c0eed61 /spec/helpers | |
parent | 9ce9e0d3661bb51d05e40db56a891380a96ef90b (diff) | |
download | gitlab-ce-02650d97e5e3134c33514334f4721f5b4d1ebd26.tar.gz |
Fix specs
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/diff_helper_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/diff_helper_spec.rb b/spec/helpers/diff_helper_spec.rb index eae097126ce..dd6566d25bb 100644 --- a/spec/helpers/diff_helper_spec.rb +++ b/spec/helpers/diff_helper_spec.rb @@ -122,9 +122,9 @@ describe DiffHelper do it "returns strings with marked inline diffs" do marked_old_line, marked_new_line = mark_inline_diffs(old_line, new_line) - expect(marked_old_line).to eq("abc <span class='idiff left right deletion'>'def'</span>") + expect(marked_old_line).to eq(%q{abc <span class="idiff left right deletion">'def'</span>}) expect(marked_old_line).to be_html_safe - expect(marked_new_line).to eq("abc <span class='idiff left right addition'>"def"</span>") + expect(marked_new_line).to eq(%q{abc <span class="idiff left right addition">"def"</span>}) expect(marked_new_line).to be_html_safe end end |