Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.