Sha256: 1eadf4c083701bbd162cfa78dce06ac82cb9d783b3d57f3502ef886d76e52411

Contents?: true

Size: 869 Bytes

Versions: 4

Compression:

Stored size: 869 Bytes

Contents

require 'spec_helper'

# to run specs with what's remembered from vcr
#   $ rake
#
# to run specs with new fresh data from aws api calls
#   $ rake clean:vcr ; time rake
describe LonoCfn::CLI do
  before(:all) do
    @args = "--noop --project-root spec/fixtures/my_project"
  end

  describe "lono-cfn" do
    it "creates stack" do
      out = execute("bin/lono-cfn create my-stack #{@args}")
      expect(out).to include("Creating")
    end

    it "updates stack" do
      out = execute("bin/lono-cfn update my-stack #{@args}")
      expect(out).to include("Updating")
    end

    it "deletes stack" do
      out = execute("bin/lono-cfn delete my-stack #{@args}")
      expect(out).to include("Deleted")
    end

    it "plans stack" do
      out = execute("bin/lono-cfn plan my-stack #{@args}")
      expect(out).to include("CloudFormation plan")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lono-cfn-1.0.4 spec/lib/cli_spec.rb
lono-cfn-1.0.2 spec/lib/cli_spec.rb
lono-cfn-1.0.1 spec/lib/cli_spec.rb
lono-cfn-1.0.0 spec/lib/cli_spec.rb