Last active
October 13, 2015 16:47
-
-
Save odlp/e8f700a1024488f7b360 to your computer and use it in GitHub Desktop.
RSpec Controller spec request type CONTENT_TYPE
This file contains hidden or 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
before(:each) { @request.env["CONTENT_TYPE"] = "application/json" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment