Sha256: 1962eff2418fe645764176d4632ac9aac0b0355eee650de37601577bf0f03626

Contents?: true

Size: 475 Bytes

Versions: 104

Compression:

Stored size: 475 Bytes

Contents

describe Terraspace::Compiler::Dsl::Mod do
  let(:builder) { described_class.new(mod, path) }
  let(:mod)     { Terraspace::Mod.new("mono") }

  context "vpc" do
    let(:path) { fixture("projects/ruby/aws/app/stacks/monolith/main.rb") }
    it "evaluate" do
      result = builder.build
      json =<<~EOL.strip
{
  "resource": {
    "aws_vpc": {
      "vpc": {
        "cidr_block": "10.20.0.0/16"
      }
    }
  }
}
EOL
      expect(result).to eq(json)
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
terraspace-2.2.17 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.16 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.15 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.14 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.13 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.12 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.11 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.10 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.9 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.8 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.7 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.6 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.5 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.4 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.3 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.2 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.1 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.2.0 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.1.7 spec/terraspace/compiler/dsl/monolith_spec.rb
terraspace-2.1.6 spec/terraspace/compiler/dsl/monolith_spec.rb