[rspec-users] Rspec teting API.

Kleber Correia klebervirgilio at gmail.com
Tue Aug 2 12:50:49 EDT 2011


Guys, I wanna test an API built in Rails 3.0.3.

So, my question is... What's the better way to test my own api?

I guess that a requests specs like these:

describe 'POST /client'
 it 'works' do
  assert_difference post '/clients', :client => {...}

can be appropriate...

Someone just tested an API? I mean... simulate the requests to API.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110802/5d817f31/attachment.html>

More information about the rspec-users mailing list