Fix test to correctly handle 1.9 Array#to_s behavior

This commit is contained in:
Yehuda Katz
2009-10-15 16:27:26 -07:00
parent b71f83c9cc
commit 4869b74aee

View File

@@ -5,7 +5,7 @@ module ContentNegotiation
# This has no layout and it works
class BasicController < ActionController::Base
self.view_paths = [ActionView::FixtureResolver.new(
"content_negotiation/basic/hello.html.erb" => "Hello world <%= request.formats %>!"
"content_negotiation/basic/hello.html.erb" => "Hello world <%= request.formats.first.to_s %>!"
)]
end