koala icon indicating copy to clipboard operation
koala copied to clipboard

It would be nice if mock http server was available to koala's users

Open fagiani opened this issue 15 years ago • 6 comments

Hey Alex,

I loved this gem and I am using it!

I thought it would be good if instead of the mock class belong in the spec tree it would be organized within the koala's code so actual users of the gem could use it as an advantage to offline testing.

If this is something you think it is doable and a real benefit, I can help to refactor with some guidance from you.

Thanks.

fagiani avatar Feb 27 '11 17:02 fagiani

Hey fagiani,

I've lined someone up who's interested in working on this if you haven't started -- we're definitely interested and would love to include it in the 1.1 release (sometime in May or June).

Best,

Alex

arsduo avatar Apr 13 '11 08:04 arsduo

Hi arsduo,

Can I add a +1 to this request? I'm very novice so don't think I have the know-how to help you, but would love to have a way to easily switch koala to test mode and modify the mock responses for the various requests.

Koala is very useful, keep up the good work!

Cheers, Rob

robertdapice avatar May 05 '11 22:05 robertdapice

Hey Rob,

A colleague of mine is going to implement this next week; if all goes according to plan, it should be in the 1.1 release (tentatively scheduled for the end of the month).

Best,

Alex

arsduo avatar May 12 '11 14:05 arsduo

Great news! Thanks for the plugin.

Chers, Rob

robertdapice avatar May 12 '11 21:05 robertdapice

Hey Rob and Paolo,

You should check out http://snarfed.org/2011-11-09_anouncing_mockfacebook -- Ryan Barrett has developed a fantastic tool that provides mock Facebook responses from a real HTTP interface; I'll be adding support to Koala for using mockfacebook in the near future. That may well obviate the need to extend our mock HTTP interface (while I'd love to finally get to this issue someday, realistically mockfacebook is both immediately available and also probably a more useful solution in the long run).

Take a look and let me know what you think -- if this meets your needs, I'll close this issue.

Thanks!

Alex

arsduo avatar Nov 12 '11 22:11 arsduo

Ah, the very olden days! This has long since not been a live issue -- nowadays there are so many better ways to handle doing development, among them VCR (which I hope to port the test suite to someday).

Hope you've all had a great 5.5 years! Closing this issue.

arsduo avatar Feb 22 '17 03:02 arsduo