Fog::Mock.reset doesn't reset all #370

Closed
dylanegan opened this Issue Jun 21, 2011 · 1 comment

Projects

None yet

2 participants

@dylanegan
Member

Came across a little issue where mocking isn't being reset across all instances. I believe this lays in the change from Fog:::: to Fog:::: (e.g, Fog::AWS::Compute to Fog::Compute::AWS). I have some code to ensure this works properly now, but it's dealing with hardcoded constants in the Fog::Mock class.

My ideal approach would be anything that defines a Mock that can be reset is inserted in to an Array instead of having Fog::Mock.reset actually look up what classes it needs to call out to. Thoughts?

@geemus geemus closed this in c3f9195 Jun 21, 2011
@geemus
Member
geemus commented Jun 21, 2011

Good catch, that was kind of hairy. This seems to solve it (albeit being pretty damned ugly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment