Sha256: 43c0e1fb75bd0dbf32601edc35ff9a602b3f2af20c184ac45ea506cc36edb5f7
Contents?: true
Size: 473 Bytes
Versions: 15
Compression:
Stored size: 473 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe String do describe "unescape_html" do it "should convert & to &" do "M&M".unescape_html.should == 'M&M' end it "should convert ó to ó" do "ósmosis".unescape_html.should == 'ósmosis' end end describe "strip_tags" do it "should strip HTML tags" do "<em>Hola</em> hola".strip_tags.should == 'Hola hola' end end end
Version data entries
15 entries across 15 versions & 3 rubygems