Skip to content

Commit

Permalink
Fill in expected value on jruby test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber committed Nov 27, 2010
1 parent a2b5d6c commit f0b070c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions spec/jruby_spec.rb
Expand Up @@ -2,6 +2,7 @@

describe RedCloth do

# FIXME: temporary test to isolate some JRuby problems
it "should strip carriage returns" do
input = <<-EOD
<div>html_block</div>
Expand All @@ -19,8 +20,16 @@
Another p.
EOD
html = ""
RedCloth.new(input).to_html.should == html
html = <<-EOD
<div>html_block</div>
<h1>Heading</h1>
<p>standalone_html coming up.</p>
<div>
<p>Another p</p>
<div>test</div>
<p>Another p.</p>
EOD
RedCloth.new(input).to_html.should == html.strip

end
end

0 comments on commit f0b070c

Please sign in to comment.