X-Git-Url: https://git.wincent.com/wikitext.git/blobdiff_plain/9b82a2899188e0662e73e6af7b5255232edf6e11..66709d85fe5499004bea3f1c0a5759ac989fc3a6:/spec/regressions_spec.rb diff --git a/spec/regressions_spec.rb b/spec/regressions_spec.rb index 6ba4860..698cbd4 100644 --- a/spec/regressions_spec.rb +++ b/spec/regressions_spec.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -# Copyright 2008-2010 Wincent Colaiuta. All rights reserved. +# Copyright 2008-2011 Wincent Colaiuta. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -890,4 +890,10 @@ describe Wikitext::Parser, 'regressions' do expected = %Q{

[http://foo.com]

\n} @parser.parse('[http://foo.com]').should == expected end + + # https://wincent.com/issues/1891 + it 'handles shorthand PRE blocks containing lines starting with slashes' do + expected = "
/a\n/b\n/c
\n" + @parser.parse(" /a\n /b\n /c").should == expected + end end