Skip to content

Commit

Permalink
Added test for double new line
Browse files Browse the repository at this point in the history
  • Loading branch information
kernow committed Jun 27, 2015
1 parent c0467bb commit a4af5ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/transformer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,13 @@
expect(html).to eq(whitespace_output)
end

let(:str_in) { "Hello [first_name],\r\n\r\nThanks!" }
let(:str_out) { "Hello Simon,\r\n\r\nThanks!" }

it 'is preserved after a tag 2' do
html = transformer.apply(parser.parse(str_in), additional_attributes: nil)
expect(html).to eq(str_out)
end

end
end

0 comments on commit a4af5ce

Please sign in to comment.