Colin, Here's some of the debug trace...
=> 14 data = ActiveSupport::JSON.decode(request.body.read) (rdb:1) p request.body.read "loan=4000000" So, this is consistent with the controller error.. JSON::ParserError: unexpected token at 'loan_request=4000000' My functional testing approach using... request = 4_000_000 post :loan, {:loan_request=>request, :format => :json} ...is not formulating the request as JSON? So, what, from anyone who tests JSON API's using functional methods is the proper usage? (I figure I'll soon have to move on to test with Cucumber, which seems to enjoy more examples around API testing...) Grar -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.