mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix test to correctly handle 1.9 Array#to_s behavior
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user