Skip to content

Instantly share code, notes, and snippets.

@mpen
Created September 11, 2009 10:54
Show Gist options
  • Save mpen/185225 to your computer and use it in GitHub Desktop.
Save mpen/185225 to your computer and use it in GitHub Desktop.
Rails rspecでRSS/XMLのテストをするときに警告が出ないようにする
# 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