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