moonmaster9000 / dupe

BDD your (ActiveResource compatible) services from the client-side, before they exist.
62 stars 17 forks source link

Dupe only called when Resources not existing #22

Closed ghost closed 12 years ago

ghost commented 13 years ago

It seems that while Dupe is loaded, all ActiveResource requests are processed by Dupe.

I think it would be interesting that Dupe act as a backup so that normal requests with different uri than those defined with Dupe keep being processed as normal active resources. If a NoResource error is raised by ActiveResource, then Dupe is asked for a mock resource corresponding.

That way, resources can be mocked while others are kept real.

moonmaster9000 commented 13 years ago

I agree, can you put together a pull request?