Skip to content

aodhol/anmo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anmo

Build status

What?

Anmo acts as a mock api and can be used to store arbitrary pieces of data for integration testing flaky APIs. This is generally not a good idea, but where you can't use VCR anmo is now an option.

How?

require "anmo"

Thread.new { Anmo.launch_server }

Anmo.create_request({
  :path => "/lookatmyhorse",
  :body => "my horse is amazing"
})
curl http://localhost:8787/lookatmyhorse
my horse is amazing

Requires memcached

If you get 'Dalli::RingError: No server available' when running test, it could be because you don't have a local instance of memcached running. See:

http://memcached.org/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages