Hi,
I see the following line in one of the test files in rails. It has a method called as any_instance
. What is its use? Can someone please explain
http = Net::HTTP.new(Person.site.host, Person.site.port)
ActiveResource::Connection.any_instance.expects(:http).returns(http)
http.expects(:request).returns(ActiveResource::Response.new(""))
Thanks