[mocha-developer] Stubbing Kernel#open
Kevin Clark
kevin.clark at gmail.com
Thu Dec 21 11:59:20 EST 2006
GoogleSearch looks something like this (it's on another machine)
class GoogleSearch
attr_accessor :body
def initialize(query_string)
open("http://google.com/search?q=#{CGI::escape(query_string)}")
end
end
On 12/21/06, James Mead <jamesmead44 at gmail.com> wrote:
> Hi Kevin,
>
> Can you supply the relevant bit of the GoogleSearch class definition?
> i.e. the initialize method and any associated methods.
>
> Also it looks like you are using the latest Mocha gem - is that correct?
> --
> James.
> http://blog.floehopper.org
> _______________________________________________
> mocha-developer mailing list
> mocha-developer at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mocha-developer
>
--
Kevin Clark
http://glu.ttono.us
More information about the mocha-developer
mailing list