Created
September 11, 2009 10:54
-
-
Save mpen/185225 to your computer and use it in GitHub Desktop.
Rails rspecでRSS/XMLのテストをするときに警告が出ないようにする
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
# html-scannerにフォーマットがXMLであることを知らせる | |
# rspecで警告 ignoring attempt to close ... が出ないようにする | |
describe "/articles.rss" do | |
before(:each) do | |
render 'articles/index.rss.builder' | |
response.content_type = 'application/rss+xml; charset=utf-8' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment