hanklords/flickraw

Mocking Calls for faster tests execution

Closed this issue · 2 comments

I am working on a Rails Project which needs integration with Flickr to get most recent public images. I am using flickraw for Flickr integration. In order to develop rspec tests and cucumber features, I need to mock Flickr Calls to avoid web calls and I found takaltoo/flickrmocks.

Flickr has updated their APIs, however, takaltoo/flickrmocks doesn't seem to be updated as per the new API specifications.

Is there any way I can do some mocking using flickraw itself. There is a way to mock the underlying web calls and return the expected response. Just looking for a clean and better way.

There is no integrated way to do mocking in flickraw. You are on your own for this.

You can use things like VCR for this.