Hi -- I'm finding that post() is serialising my json data badly, so for that
and other reasons, I want to use curl to test my web service in cucumber.
(I'm using capybara, btw.)
The problem is, on a service that I already know is working fine, I'm
getting this in the body of the failed attempt to post:
"The requested URL /mobile_app/timesheet_uploads.json was not found on
this server."
The code that generates that error is:
curl = Curl::Easy.new( mobile_app_timesheet_uploads_url( :format => "json"
) )
curl.http_post( { upload_data: @upload_data }.to_json )
puts curl.body_str
>From my (I guess not particularly strong) understanding of what happens in
cucumber, this should work, so I'm stumped.
Can anyone advise me on how to get this to work?
Cheers,
Doug.
--
You received this message because you are subscribed to the Google Groups
"NWRUG" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nwrug-members?hl=en.