Created
November 30, 2009 16:15
-
-
Save anonymous/245526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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