Sha256: f49ac8a0dbb7d50c0ef4c711faf9941f464ed89eefd69c4cb4172b5e6242b4f6

Contents?: true

Size: 739 Bytes

Versions: 5

Compression:

Stored size: 739 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("stack creating.")
    end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lono-cfn-0.1.0 spec/lib/cli_spec.rb
lono-cfn-0.0.9 spec/lib/cli_spec.rb
lono-cfn-0.0.8 spec/lib/cli_spec.rb
lono-cfn-0.0.7 spec/lib/cli_spec.rb
lono-cfn-0.0.6 spec/lib/cli_spec.rb