On 18 Jul 2011, at 07:04, kevin peter wrote:

> Hi David
> i have given detailed explanation about my problem. with below link
> http://pastie.org/2230103..
> Could u please help me???
> 
> Thanks in advance

I had a quick look at this, and I have three bits of advice:

1) Hire a consultant like @JBrains to come and give you and your team some 
training in how to solve these kinds of problems for yourselves
2) Buy Michael Feathers' "Working Effectively With Legacy Code" and read it.
3) Buy Steve Freeman & Nat Pryce's "Growing Object Oriented Software, Guided By 
Tests" and read it.

What you need to understand about here is how to create a "Seam" between your 
code and the SOAP library you're using. The reason it's painful for you to mock 
against this library is that is wasn't designed with that in mind. Both the 
Feathers book and the Freeman / Pryce book will teach you how to do that.

cheers,
Matt

--
Freelance programmer & coach
Author, http://pragprog.com/books/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to