Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb
index b62df9a..e1e7383 100644
--- a/actionpack/test/dispatch/request_test.rb
+++ b/actionpack/test/dispatch/request_test.rb
@@ -436,6 +436,9 @@ class RequestTest < ActiveSupport::TestCase
request = stub_request
request.expects(:parameters).at_least_once.returns({ :format => :unknown })
assert request.formats.empty?
+
+ request = stub_request 'HTTP_ACCEPT' => 'application/xml, application/json'
+ assert_equal [ Mime::XML, Mime::JSON ], request.formats
end
test "negotiate_mime" do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment