diff --git a/spec/helpers/gitlab_markdown_helper_spec.rb b/spec/helpers/gitlab_markdown_helper_spec.rb index a0bbc02..6afd4b5 100644 --- a/spec/helpers/gitlab_markdown_helper_spec.rb +++ b/spec/helpers/gitlab_markdown_helper_spec.rb @@ -378,9 +378,10 @@ describe GitlabMarkdownHelper do it "should leave code blocks untouched" do helper.stub(:user_color_scheme_class).and_return(:white) - helper.markdown("\n some code from $#{snippet.id}\n here too\n").should include("
some code from $#{snippet.id}\nhere too\n
") + target_html = "
some code from $#{snippet.id}"
 
-      helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should include("
some code from $#{snippet.id}\nhere too\n
") + helper.markdown("\n some code from $#{snippet.id}\n here too\n").should include(target_html) + helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should include(target_html) end it "should leave inline code untouched" do -- libgit2 0.21.2