How to set the request format in a functional test?
I am trying to do something like:
get :show, :id => '1', :format => :xml
but that will not work.
For some reason, you cannot use characters to determine the format in tests, you must use the string version.
get :show, :id => '1', :format => 'xml'
Source: https://habr.com/ru/post/1346615/More articles:How to assign a text field value to another text field using jquery - javascriptF # → Seq to Map - f #How should I annotate CreateOn and ModifiedOn columns with EF 4.1? - entity-frameworkIPhone simulator sound works only for frequencies 44100 Hz, 22050 Hz and 11025 Hz - iphoneWorking with subrepos in Mercurial - mercurialHTML5 Validation for Grooveshark Widgets - htmlDetecting a newly created file, a newly edited file - c #Pylint does not work with Emacs GUI on OS X; works from the command line - pythonSQL GROUP BY with a condition? - sqlAlternative views instead of Stackviews for Android versions below for Android 3.0 - androidAll Articles