Skip to content

Instantly share code, notes, and snippets.

Created November 30, 2009 16:15
Show Gist options
  • Save anonymous/245526 to your computer and use it in GitHub Desktop.
Save anonymous/245526 to your computer and use it in GitHub Desktop.
describe 'Mysterious error' do
before {
@fails = %q{The title probably says it all.
We're doing a night paying homage to disco music of 70's.<br />
Seen the movie 54?}
@works = %q{We're doing a night paying homage to disco music of 70's.<br />
Seen the movie 54?}
}
should "keep br and a tags, v1" do
data = @fails
Sanitize.clean(data, {:elements => ["br", "a"]}).should.equal(data)
end
should "keep br and a tags, v2" do
data = @works
Sanitize.clean(data, {:elements => ["br", "a"]}).should.equal(data)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment