test/test_helper.rb in geocerts-0.0.11 vs test/test_helper.rb in geocerts-0.0.12
- old
+ new
@@ -19,10 +19,10 @@
class Test::Unit::TestCase
def managed_server_request(method, path, options = {}, &block)
case path
when String
- uri = URI.parse(GeoCerts::API::ENDPOINT.gsub(':version', '1') + path)
+ uri = URI.parse(GeoCerts::API::ENDPOINT.gsub(':host', GeoCerts.host).gsub(':version', '1') + path)
uri.user = GeoCerts.partner_id
uri.password = GeoCerts.api_token
FakeWeb.register_uri(method, uri.to_s, options)
when Regexp
FakeWeb.register_uri(method, path, options)