Sha256: e41ed21af2da2b0403dafd3c8e1a7e484e3120c6b81b71bd381b22046cbaa828

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

require 'spec_helper'
require 'stringio'

module Convection::Model
  describe Cloudfile do
    describe 'stack' do
      subject do
        klass = Class.new
        klass.extend(Convection::DSL::Cloudfile)
        klass
      end

      it 'can get cloud name' do
        subject.name 'test-1'
        expect(subject.name).to eq('test-1')
      end

      it 'can get region name' do
        subject.region 'eu-central-1'
        expect(subject.region).to eq('eu-central-1')
      end

      it 'can exclude_availability_zones an availability_zone' do
        subject.exclude_availability_zones %w(eu-central-1a)
        expect(subject.exclude_availability_zones).to contain_exactly('eu-central-1a')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
convection-1.0.4 spec/convection/model/cloudfile_spec.rb