No longer stub out uri_from_hash
Since we pull in the cookbooks with librarian, let chef act as it would. Plus `::Openstack::uri_from_hash` isn't a valid method call.
This commit is contained in:
@@ -35,7 +35,7 @@ module Openstack
|
||||
if ep && ep.has_key?("uri")
|
||||
ep["uri"]
|
||||
elsif ep
|
||||
::Openstack::uri_from_hash(ep).to_s
|
||||
uri_from_hash(ep).to_s
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -73,7 +73,6 @@ describe ::Openstack do
|
||||
}
|
||||
}
|
||||
}
|
||||
::Openstack.stub(:uri_from_hash).and_return "http://localhost"
|
||||
@subject.instance_variable_set :@node, uri_hash
|
||||
@subject.endpoint_uri("compute-api").should eq "http://localhost"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user