make aws-missing-tools a gem

This commit is contained in:
Anuj Biyani
2013-05-30 16:19:08 -07:00
parent e35a0e1a8d
commit 2bdaca25bb
14 changed files with 95 additions and 23 deletions

View File

@@ -1,5 +0,0 @@
require 'rspec'
require File.expand_path('aws-ha-release/aws-ha-release.rb')
describe 'aws-ha-release' do
end

View File

@@ -0,0 +1,22 @@
require 'spec_helper'
describe 'aws-ha-release' do
let(:opts) do
{
as_group_name: 'test_group',
aws_access_key: 'testaccesskey',
aws_secret_key: 'testsecretkey',
region: 'test-region'
}
end
before do
AWS.stub(:config)
AWS::AutoScaling.stub(:new).and_return(AWS::FakeAutoScaling.new)
end
describe '#initialize' do
it 'initializes the AWS connection'
it 'ensures the as group exists'
end
end

8
spec/spec_helper.rb Normal file
View File

@@ -0,0 +1,8 @@
require 'rspec'
require 'aws-missing-tools'
Dir['spec/support/**/*.rb'].each { |f| require File.expand_path(f) }
RSpec.configure do |config|
config.order = 'random'
end

View File

@@ -0,0 +1,6 @@
module AWS
class FakeAutoScaling
def initialize
end
end
end