Sha256: afde476b36729ce32176b44e3e1ea69ca4ed4708c545b03d5624ce4e08ff85f5

Contents?: true

Size: 670 Bytes

Versions: 19

Compression:

Stored size: 670 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)"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
terraspace-2.1.7 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.6 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.5 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.4 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.3 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.2 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.1 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.1.0 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.0.3 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.0.2 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.0.1 spec/terraspace/compiler/erb/render_spec.rb
terraspace-2.0.0 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.7 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.6 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.5 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.4 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.3 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.2 spec/terraspace/compiler/erb/render_spec.rb
terraspace-1.1.1 spec/terraspace/compiler/erb/render_spec.rb