Method: Awspec::Generator::Template.generate_type_spec

Defined in:
lib/awspec/generator/template.rb

.generate_type_specObject



54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/awspec/generator/template.rb', line 54

def self.generate_type_spec
  path = 'spec/type/' + @type.underscore + '_spec.rb'
  content = <<-"EOF"
require 'spec_helper'
Awspec::Stub.load '#{@type.underscore}'

describe #{@type.underscore}('my-#{@type.underscore.tr('_', '-')}') do
  it { should exist }
end
EOF
  self.file_check_and_puts(path, content)
end