Merge "Remove ambiguity in stubbed methods in spec_helper"

This commit is contained in:
Jenkins
2014-01-22 22:33:40 +00:00
committed by Gerrit Code Review

View File

@@ -31,7 +31,9 @@ shared_context 'image-stubs' do
.with('secrets', 'openstack_identity_bootstrap_token')
.and_return('bootstrap-token')
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', 'openstack-image')
.and_return('glance-pass')