stub the warn_local_gems call in the update command of the plugin manager as is only relevant for master, not for the version branches

Fixes #4212
This commit is contained in:
Pere Urbon-Bayes 2015-11-17 12:52:00 +01:00 committed by Jordan Sissel
parent b51608a907
commit 29b6301199

View file

@ -8,7 +8,7 @@ describe LogStash::PluginManager::Update do
before(:each) do
expect(cmd).to receive(:find_latest_gem_specs).and_return({})
expect(cmd).to receive(:warn_local_gems).and_return(nil)
allow(cmd).to receive(:warn_local_gems).and_return(nil)
expect(cmd).to receive(:display_updated_plugins).and_return(nil)
expect_any_instance_of(LogStash::Bundler).to receive(:invoke!).with(:clean => true)
end