Sha256: b9ee4e475af7e4bc316e2f1c34a24968b5269e7a561e59d3dc590336be0139a1

Contents?: true

Size: 703 Bytes

Versions: 68

Compression:

Stored size: 703 Bytes

Contents

require 'spec_helper'

class Convection::Model::Template::Resource
  describe ElastiCacheSecurityGroup do
    let(:elasticache_template) do
      Convection.template do
        description 'Elasticache Test Template'

        elasticache_security_group 'MyRedisSecGroup' do
          description 'Redis cache security group'
        end
      end
    end

    subject do
      template_json
        .fetch('Resources')
        .fetch('MyRedisSecGroup')
        .fetch('Properties')
    end

    it 'has a description' do
      expect(subject['Description']).to eq('Redis cache security group')
    end

    private

    def template_json
      JSON.parse(elasticache_template.to_json)
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
convection-0.4.1 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.4.0 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.3.3.pre.beta.1 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.3.2 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.3.1 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.3.0 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.2.34.pre.beta.1 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-0.2.33 spec/convection/model/template/resource/elasticache_security_group_spec.rb