Sha256: ff43d8886c5986c938e0cdd50bc4053dd873d4c381ab511d31ab4c34bf4d8a45

Contents?: true

Size: 672 Bytes

Versions: 18

Compression:

Stored size: 672 Bytes

Contents

describe Terraspace::Compiler::Erb::Render do
  let(:render) { described_class.new(mod, src_path) }
  let(:mod)    do
    mod = Terraspace::Mod.new("a1")
    mod.resolved = false
    mod
  end

  # Only testing mod unresolved as a sanity check and its worth the ROI.
  # The resolved would the Fetcher. We have unit tests to cover those other changes.
  context "a1" do
    let(:src_path) { fixture("dependencies/app/stacks/a1/tfvars/dev.tfvars") }
    it "build" do
      allow(Terraspace::Terraform::RemoteState::Marker::Output).to receive(:stack_names).and_return("b1")
      result = render.build
      expect(result).to eq "length = (unresolved)\n"
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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