Created
November 25, 2014 14:44
-
-
Save ajmath/d375d9c2577f497bbefe to your computer and use it in GitHub Desktop.
AWSENV Mocking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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