Add test
This commit is contained in:
parent
4e5cd0b1ed
commit
17d4aad44b
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ RSpec.describe AdvancedTextFormatter do
|
||||||
it 'formats code using <pre> and <code>' do
|
it 'formats code using <pre> and <code>' do
|
||||||
is_expected.to include '<pre><code>int main'
|
is_expected.to include '<pre><code>int main'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'does not strip leading spaces' do
|
||||||
|
is_expected.to include '> return 0'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'given some quote' do
|
context 'given some quote' do
|
||||||
|
|
Loading…
Reference in a new issue