Sha256: 473c939b9cb77af5a35e2a07a6b06b96a691b4f450548d2b3d36223adf95c4cf
Contents?: true
Size: 928 Bytes
Versions: 1
Compression:
Stored size: 928 Bytes
Contents
require "spec_helper" describe Lono do before(:each) do @env = "LONO_ROOT=tmp/foo" lono_bin = File.expand_path("../../../../bin/lono", __FILE__) execute("cd tmp && #{lono_bin} new foo -f -q --format json") end after(:each) do # FileUtils.rm_rf("foo") unless ENV['KEEP_TMP_PROJECT'] end describe "bashify" do it "should convert cfn user_data to bash script" do path = "#{$root}/spec/fixtures/cfn.json" out = execute("./bin/lono template bashify #{path}") expect(out).to match /bash -lexv/ end end describe "cli specs" do it "should generate templates" do out = execute("#{@env} ./bin/lono template generate -c") expect(out).to match /Generating CloudFormation templates/ end it "should upload templates" do out = execute("#{@env} ./bin/lono template upload --noop") expect(out).to match /Templates uploaded to s3/ end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lono-3.5.0 | spec/lib/lono/template_spec.rb |