Commit 86e4f6e06ddb314c97e2bc3e027d9f0ee0d9a852
1 parent
f304f975
Exists in
spb-stable
and in
3 other branches
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
spec/helpers/gitlab_markdown_helper_spec.rb
... | ... | @@ -378,10 +378,10 @@ describe GitlabMarkdownHelper do |
378 | 378 | it "should leave code blocks untouched" do |
379 | 379 | helper.stub(:user_color_scheme_class).and_return(:white) |
380 | 380 | |
381 | - target_html = "<div class=\"white\"><div class=\"highlight\"><pre><span class=\"n\">some</span> <span class=\"n\">code</span> <span class=\"n\">from</span> <span class=\"err\">$</span><span class=\"mi\">#{snippet.id}</span>" | |
381 | + target_html = "\n<div class=\"highlighted-data white\">\n <div class=\"highlight\">\n <pre>\n <code class=\"\">some code from $#{snippet.id}\nhere too\n</code>\n </pre>\n </div>\n</div>\n\n" | |
382 | 382 | |
383 | - helper.markdown("\n some code from $#{snippet.id}\n here too\n").should include(target_html) | |
384 | - helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should include(target_html) | |
383 | + helper.markdown("\n some code from $#{snippet.id}\n here too\n").should == target_html | |
384 | + helper.markdown("\n```\nsome code from $#{snippet.id}\nhere too\n```\n").should == target_html | |
385 | 385 | end |
386 | 386 | |
387 | 387 | it "should leave inline code untouched" do | ... | ... |