Sha256: d2eecc6b4d7b920c92748539d0cc19e203b743b9e6f2510b77f5ee377ea2f8fc

Contents?: true

Size: 752 Bytes

Versions: 16

Compression:

Stored size: 752 Bytes

Contents

require 'spec_helper'

RSpec.shared_examples "template acceptance validations" do
  include CommandHelpers
  include JsonHelpers
  include FileHelpers
  include AwsHelpers

  it "should create a valid JSON template from the example ruby template" do
    delete_test_file(json_template)
    json = exec_cmd("./#{ruby_template} expand", :within => "examples").first
    write_test_file(json_template, json)
    validate_cfn_template(json_template)
  end
end

describe "cloudformation-ruby-dsl" do
  context "simplest template" do
    let(:ruby_template) { "simple_template.rb" }
    let(:json_template) { "simple_template.json" }

    include_examples "template acceptance validations"
  end

  # TODO validate examples/cloudformation-ruby-script.rb
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
cardtapp-cloudformation-ruby-dsl-0.0.1.pre.3 spec/validation_spec.rb
cardtapp-cloudformation-ruby-dsl-0.0.1.pre.pre2 spec/validation_spec.rb
cardtapp-cloudformation-ruby-dsl-0.0.1.pre.pre1 spec/validation_spec.rb
cloudformation-ruby-dsl-1.5.0 spec/validation_spec.rb
cloudformation-ruby-dsl-1.4.6 spec/validation_spec.rb
cloudformation-ruby-dsl-1.4.5 spec/validation_spec.rb
cloudformation-ruby-dsl-1.4.3 spec/validation_spec.rb
cloudformation-ruby-dsl-1.4.2 spec/validation_spec.rb
cloudformation-ruby-dsl-1.4.1 spec/validation_spec.rb
cloudformation-ruby-dsl-1.4.0 spec/validation_spec.rb
cloudformation-ruby-dsl-1.3.2 spec/validation_spec.rb
cloudformation-ruby-dsl-1.2.6 spec/validation_spec.rb
cloudformation-ruby-dsl-1.3.1 spec/validation_spec.rb
cloudformation-ruby-dsl-1.3.0 spec/validation_spec.rb
cloudformation-ruby-dsl-1.2.5 spec/validation_spec.rb
cloudformation-ruby-dsl-1.2.4 spec/validation_spec.rb