spec/downterm/render_spec.rb in downterm-0.1.4 vs spec/downterm/render_spec.rb in downterm-0.1.5
- old
+ new
@@ -189,19 +189,30 @@
expect(actual).to eq(expected)
end
end
describe 'a quote' do
- it 'is rendered verbatim' do
+ it 'is indented and placed within quotes' do
md = [
'This is a cool quote:',
'',
'> One, two! One, two! And through and through',
'> The vorpal blade went snicker-snack!',
'> He left it dead, and with its head',
'> He went galumphing back',
+ '',
+ 'It is from Alice in Wonderland.',
].join("\n")
- expected = md
+ expected = <<-EOS.strip
+This is a cool quote:
+
+ "One, two! One, two! And through and through
+ The vorpal blade went snicker-snack!
+ He left it dead, and with its head
+ He went galumphing back"
+
+It is from Alice in Wonderland.
+ EOS
actual = markdown.render(md)
expect(actual).to eq(expected)
end
end