Sha256: 4b29a8b129757d2ee71a5d8956b2656791c60bb794cf8e17c58243a27fc11608

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

require File.expand_path("../../../../../base", __FILE__)

describe VagrantPlugins::CommandPlugin::Action::UninstallPlugin do
  let(:app) { lambda { |env| } }
  let(:env) {{
    ui: Vagrant::UI::Silent.new,
  }}

  let(:manager) { double("manager") }

  subject { described_class.new(app, env) }

  before do
    Vagrant::Plugin::Manager.stub(instance: manager)
  end

  it "uninstalls the specified plugin" do
    expect(manager).to receive(:uninstall_plugin).with("bar").ordered
    expect(app).to receive(:call).ordered

    env[:plugin_name] = "bar"
    subject.call(env)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/test/unit/plugins/commands/plugin/action/uninstall_plugin_test.rb