Skip to content

Commit

Permalink
Fix to textilize
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry committed Jun 16, 2017
1 parent b065a47 commit 9ffb192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

describe "ERB helper" do
it "should add a textile tag to ERB" do
template = %{<%= textile "This new ERB tag makes is so _easy_ to use *RedCloth*" %>}
template = %{<%= textilize "This new ERB tag makes is so _easy_ to use *RedCloth*" %>}
expected = %{<p>This new <span class="caps">ERB</span> tag makes is so <em>easy</em> to use <strong>RedCloth</strong></p>}

ERB.new(template).result.should == expected
Expand Down

0 comments on commit 9ffb192

Please sign in to comment.