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 "Hola hola".strip_tags.should == 'Hola hola' end end end