Created
November 17, 2009 17:22
-
-
Save paul/237075 to your computer and use it in GitHub Desktop.
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
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