Sha256: 3563a77996c1e3483d36866ba7fccbc014ba8224dc9e653a96dae766c473f623
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
require_relative "../spec_helper" describe Lono do describe "lono" do before(:each) do @env = "LONO_ROOT=#{ENV['LONO_ROOT']}" end after(:each) do FileUtils.rm_rf("spec/fixtures/my_project/params/base") end it "generate should build templates" do out = execute("#{@env} bin/lono generate") expect(out).to match /Generating both CloudFormation template and parameter/ end it "import should download template" do path = "spec/fixtures/my_project/config/templates/base/stacks.rb" backup = "spec/fixtures/my_project/config/templates/base/stacks.rb.bak" FileUtils.cp(path, backup) out = execute("#{@env} bin/lono import spec/fixtures/raw_templates/aws-waf-security-automations.template #{@args}") expect(out).to match /Imported raw CloudFormation template/ FileUtils.mv(backup, path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lono-3.5.0 | spec/lib/lono_spec.rb |