make aws-missing-tools a gem
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
require 'rspec'
|
||||
require File.expand_path('aws-ha-release/aws-ha-release.rb')
|
||||
|
||||
describe 'aws-ha-release' do
|
||||
end
|
||||
22
spec/aws-missing-tools/aws-ha-release/aws-ha-release_spec.rb
Normal file
22
spec/aws-missing-tools/aws-ha-release/aws-ha-release_spec.rb
Normal 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
8
spec/spec_helper.rb
Normal 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
|
||||
6
spec/support/fake_auto_scaling.rb
Normal file
6
spec/support/fake_auto_scaling.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
module AWS
|
||||
class FakeAutoScaling
|
||||
def initialize
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user