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:
John Dewey
2012-11-20 16:45:58 -08:00
parent bf7822b391
commit c09dcf3669
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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