Sha256: 1ecb52ade09a6696768220283b7e3351a7027a23eaa93d7109fa21a9a77b7415
Contents?: true
Size: 960 Bytes
Versions: 10
Compression:
Stored size: 960 Bytes
Contents
require "spec_helper" module Terraforming 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
10 entries across 10 versions & 2 rubygems