Sha256: 74d2fd9dbbba06bc6aa136b965435c078d2bebc2b92b7277bf2e338009d9be66
Contents?: true
Size: 568 Bytes
Versions: 31
Compression:
Stored size: 568 Bytes
Contents
require 'kontena/plugin_manager' describe Kontena::PluginManager::Uninstaller do let(:subject) { described_class.new('foo') } let(:installed) { double(name: 'double', base_dir: '/tmp') } let(:command) { double } before(:each) do allow(subject).to receive(:installed).with('foo').and_return(installed) end context '#uninstall' do it 'runs the gem uninstaller' do expect(subject).to receive(:command).with(installed).and_return(command) expect(command).to receive(:uninstall).and_return(true) subject.uninstall end end end
Version data entries
31 entries across 31 versions & 1 rubygems