For mocking other web services based on REST (ActiveResource) I use Dupe
gem.
(https://github.com/moonmaster9000/dupe).
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listin
How one should test an API which depends on other web services (SOAP
etc). e.g. Login to my API internally calls to another webservice API
for authentication. Also all the data sent back by my API is actually
data retrieved from another web service. Also should we verify the data
or just responses
Thanks for all your answers,
I should have said I'm very used to the workflow of integration specs
and capybara.
My question is really oriented towards API testing and particularly on
the use of Active Resource.
Basically, I'd like to:
a- create ActiveResource classes in rspec/support
b- run my
Agreed. This is even more a bullet to bite early if your app orchestrates
over more than one service, or if services talk to other services or both.
Testing this kind of setup is pretty difficult and the tests are typically
very brittle.
Best,
Sidu.
http://c42.in
http://rubymonk.com
Sent from my
On Sun, Jan 15, 2012 at 3:36 AM, David Chelimsky wrote:
>
> On Jan 14, 2012, at 10:32 AM, David Chelimsky wrote:
>
> On Jan 14, 2012, at 8:40 AM, apneadiving wrote:
>
> As I am writing a brand new API, I'd like to test it's response.
>
>
>
> Basically, it would be great in my case to test if Acti
On Jan 14, 2012, at 10:32 AM, David Chelimsky wrote:
> On Jan 14, 2012, at 8:40 AM, apneadiving wrote:
>
>> As I am writing a brand new API, I'd like to test it's response.
>
>> Basically, it would be great in my case to test if ActiveResource gets
>> the expected data but it means I have to la
On Jan 14, 2012, at 8:40 AM, apneadiving wrote:
> As I am writing a brand new API, I'd like to test it's response.
> Basically, it would be great in my case to test if ActiveResource gets
> the expected data but it means I have to launch a test server in
> background for the whole suite.
> Is th