Commit 3d242a3154644bb1fea1b70d2661cee4f3db342c
1 parent
f614ae8e
Exists in
master
and in
4 other branches
Fix GitLab Markdown helper spec
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
spec/helpers/gitlab_markdown_helper_spec.rb
@@ -329,9 +329,11 @@ describe GitlabMarkdownHelper do | @@ -329,9 +329,11 @@ describe GitlabMarkdownHelper do | ||
329 | end | 329 | end |
330 | 330 | ||
331 | it "should leave code blocks untouched" do | 331 | it "should leave code blocks untouched" do |
332 | - markdown("\n some code from $#{snippet.id}\n here too\n").should == "<div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre></div>" | 332 | + helper.stub(:user_color_scheme_class).and_return(:white) |
333 | 333 | ||
334 | - markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should == "<div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre></div>" | 334 | + helper.markdown("\n some code from $#{snippet.id}\n here too\n").should == "<div class=\"white\"><div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre></div></div>" |
335 | + | ||
336 | + helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should == "<div class=\"white\"><div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> $#{snippet.id}\n<span class=\"n\">here</span> <span class=\"n\">too</span>\n</pre></div></div>" | ||
335 | end | 337 | end |
336 | 338 | ||
337 | it "should leave inline code untouched" do | 339 | it "should leave inline code untouched" do |