Sha256: f879288f110ef4959631f3b3e8fc85c3c8dd5cbde1b42c1a47d23ca4d34dea43

Contents?: true

Size: 634 Bytes

Versions: 19

Compression:

Stored size: 634 Bytes

Contents

# Copyright (c) 2012-2013 Stark & Wayne, LLC

require "bosh-bootstrap/cli/commands/delete"

describe Bosh::Bootstrap::Cli::Commands::Delete do
  include StdoutCapture
  include Bosh::Bootstrap::Cli::Helpers

  let(:settings_dir) { File.expand_path("~/.microbosh") }

  subject { Bosh::Bootstrap::Cli::Commands::Delete.new }

  it "deletes microbosh VM" do
    setting "bosh.name", "test-bosh"
    mkdir_p(File.join(settings_dir, "deployments"))
    subject.should_receive(:sh).with("bundle exec bosh -n micro deployment test-bosh")
    subject.should_receive(:sh).with("bundle exec bosh -n micro delete")
    subject.perform
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
bosh-bootstrap-0.13.2 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.13.1 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.13.0 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.12.0 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.15 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.14 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.13 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.12 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.11 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.9 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.8 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.7 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.6 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.5 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.4 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.3 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.2 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.1 spec/unit/commands/delete_spec.rb
bosh-bootstrap-0.11.0 spec/unit/commands/delete_spec.rb