Skip to content

Instantly share code, notes, and snippets.

@burythehammer
Created March 20, 2017 12:42
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 burythehammer/29b3fd3db4fcdffa976c8481982661e6 to your computer and use it in GitHub Desktop.
Save burythehammer/29b3fd3db4fcdffa976c8481982661e6 to your computer and use it in GitHub Desktop.
Example AWS Spec testing
require "spec_helper"
before do
@client = Aws::EC2::Client.new
@ec2 = Aws::EC2::Resource.new(client: @client)
end
describe "Instances" do
subject { @ec2.instances.count }
it { is_expected.to eq(3) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment