Sha256: f88db4898fd9b69bc8257a6867887ae00d37114fd643b667affb2eafaf7a0291
Contents?: true
Size: 968 Bytes
Versions: 9
Compression:
Stored size: 968 Bytes
Contents
require "spec_helper" module PracticeTerraforming module Resource describe <%= camelize(resource) %> do let(:client) do # TODO: Select appropriate Client class from here: # http://docs.aws.amazon.com/sdkforruby/api/index.html Aws::SomeResource::Client.new(stub_responses: true) end describe ".tf" do xit "should generate tf" do expect(described_class.tf(client: client)).to eq <<-EOS resource "aws_<%= resource %>" "resource_name" { } EOS end end describe ".tfstate" do xit "should generate tfstate" do expect(described_class.tfstate(client: client)).to eq({ "aws_<%= resource %>.resource_name" => { "type" => "aws_<%= resource %>", "primary" => { "id" => "", "attributes" => { } } } }) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems