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-2.2.12 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.11 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.10 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.9 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.8 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.7 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.6 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.5 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.4 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.3 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.2 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.1 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.2.0 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.1.2 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.1.1 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.1.0 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-2.0.0 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-1.1.7 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-1.1.5 spec/convection/model/template/resource/elasticache_security_group_spec.rb
convection-1.1.4 spec/convection/model/template/resource/elasticache_security_group_spec.rb