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:
User.find_by_token(params["token"])
Cheers,
Lawrence
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users