This repository has been archived by the owner on Jun 24, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: code blocks with unknown languages
should have same markup as code blocks with known languages
- Loading branch information
Christian Kruse
committed
Jan 14, 2016
1 parent
d9564f8
commit 5b94b6b
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
spec/features/unknown_code_block_is_rendered_like_known_code_block_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| require "rails_helper" | ||
|
|
||
| RSpec.describe "problematic site is in preview" do | ||
| let(:message) { create(:cf_message, content: "~~~brainfuck | ||
| ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++. | ||
| ~~~") } | ||
|
|
||
| include CForum::Tools | ||
|
|
||
| it "has no problematic site when value is empty" do | ||
| visit cf_message_path(message.thread, message) | ||
| expect(page.find(".posting-content")).to have_css("code.block") | ||
| end | ||
| end | ||
|
|
||
| # eof |