Merge "Remove ambiguity in stubbed methods in spec_helper"

This commit is contained in:
Jenkins 2014-01-29 15:58:21 +00:00 committed by Gerrit Code Review
commit e6a23db739
1 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,12 @@ require 'chef/application'
# TODO(chrislaco): Factor this into proper RSpec shared_contexts
def metering_stubs # rubocop:disable MethodLength
::Chef::Recipe.any_instance.stub(:memcached_servers).and_return([])
::Chef::Recipe.any_instance.stub(:get_password).and_return('')
::Chef::Recipe.any_instance.stub(:get_password)
.with('db', anything)
.and_return('')
::Chef::Recipe.any_instance.stub(:get_password)
.with('service', anything)
.and_return('')
::Chef::Recipe.any_instance.stub(:get_password)
.with('user', 'guest')
.and_return('rabbit-pass')