Hi!

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 => {...}
 end
end

can be appropriate...

Someone just tested an API? I mean... simulate the requests to API.
Tks!
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to