Sunday, September 8, 2013

Re: [Rails] testing a REST API that receives params in json and returns data in json

Did you try reading the Rspec docs? Also, this would help you: http://edgeguides.rubyonrails.org/testing.html#what-to-include-in-your-functional-tests

-- 
Dheeraj Kumar

On Sunday 8 September 2013 at 4:44 PM, André Orvalho wrote:

Hi Emil,

I have also found that link and that only shows GET requests. Its a very good example for those. But I need to make a pull request where I need to send data in JSON just like the example you posted here in cucumber, and I dont seem to find the way to do this in Rspec. at least I cant make it receive the arguments in JSON.

all the best,

Andre

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6P50awaCSBsyfm%2BpwJms8DoC-qPSzv40VCu7hyaq6nAdLd%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/75D980CB036F4A77AD00CA723A687E2E%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate