spec/env.rb in geoloqi-0.9.40 vs spec/env.rb in geoloqi-0.9.41
- old
+ new
@@ -18,6 +18,10 @@
'Authorization' => "OAuth #{access_token}"}
end
def api_url(path); "#{Geoloqi.api_url}/#{Geoloqi.api_version}/#{path}" end
+def api_url_with_auth(path)
+ Addressable::URI.parse(api_url(path)).merge(:user => CLIENT_ID, :password => CLIENT_SECRET).to_s
+end
+
include WebMock::API
\ No newline at end of file