Skip to content

Instantly share code, notes, and snippets.

@ajmath
Created November 25, 2014 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajmath/d375d9c2577f497bbefe to your computer and use it in GitHub Desktop.
Save ajmath/d375d9c2577f497bbefe to your computer and use it in GitHub Desktop.
AWSENV Mocking
allow(AWSENV).to receive(:new).and_return(
double("env",
:hostname => "logstash-yup",
:instance_name => "lh-loststache",
:local_ipv4 => "10.0.0.1",
:public_ipv4 => "69.69.69.69",
:cf_stack_name => "SuperAwesomeStack",
:asg_name => "my_asg",
:instance_id => "i-1234"
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment