[rspec-users] Sending raw JSON data with Rails 3.2.11 and RSpec
lawrence.pit at gmail.com
Sat Feb 9 06:51:05 UTC 2013
> So is it not possible to do a controller spec with raw data?
Not that I know of. In the controller the raw data is assumed to have
been parsed already.
You could also simply set the parameter value to an integer in your test
and then call your controller action:
params["token"] = 0
That should give you the same query manipulation if you have this in
your controller action:
More information about the rspec-users