[Rails] Re: ActiveResource Mock Objects
No response? Is anyone using HttpMock?
Thanks,
Tom
On May 15, 4:32 pm, TomRossi7 <t...@themolehill.com> wrote:
> A little more information: the problem is once you require
> 'active_resource/http_mock' all subsequent tests will assume http
> mocks exists. This makes it so I can't run my tests with rake.
>
> On May 15, 4:12 pm, TomRossi7 <t...@themolehill.com> wrote:
>
> > Some of my tests use ActiveResource HttpMock requests and some of them
> > do not. Does anyone know if there is a way to disable the HttpMocks
> > after they have already been loaded? The method
> > ActiveResource::HttpMock.reset! only removes all the objects, but
> > ActiveResource still thinks it should look for mock requests rather
> > than actually making requests. I hope this makes sense!
>
> > Thanks,
> > Tom
>
> > --
> > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home