Created
February 6, 2011 03:35
-
-
Save oleander/813098 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
it "should not contain any attributes that contain any html tags" do | |
@use.each do |subtitle| | |
[:details, :downloads, :cds, :title, :movie_title, :url].each do |method| | |
subtitle.send(method).should_not match(/<\/?[^>]*>/) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment