spec/support/helper.rb in actv-1.1.1 vs spec/support/helper.rb in actv-1.1.3
- old
+ new
@@ -1,36 +1,36 @@
require 'webmock/rspec'
-def a_delete(path, endpoint='https://api.active.com')
+def a_delete(path, endpoint=ACTV::Default.endpoint)
a_request(:delete, endpoint + path)
end
-def a_get(path, endpoint='https://api.active.com')
+def a_get(path, endpoint=ACTV::Default.endpoint)
a_request(:get, endpoint + path)
end
-def a_post(path, endpoint='https://api.active.com')
+def a_post(path, endpoint=ACTV::Default.endpoint)
a_request(:post, endpoint + path)
end
-def a_put(path, endpoint='https://api.active.com')
+def a_put(path, endpoint=ACTV::Default.endpoint)
a_request(:put, endpoint + path)
end
-def stub_delete(path, endpoint='https://api.active.com')
+def stub_delete(path, endpoint=ACTV::Default.endpoint)
stub_request(:delete, endpoint + path)
end
-def stub_get(path, endpoint='https://api.active.com')
+def stub_get(path, endpoint=ACTV::Default.endpoint)
stub_request(:get, endpoint + path)
end
-def stub_post(path, endpoint='https://api.active.com')
+def stub_post(path, endpoint=ACTV::Default.endpoint)
stub_request(:post, endpoint + path)
end
-def stub_put(path, endpoint='https://api.active.com')
+def stub_put(path, endpoint=ACTV::Default.endpoint)
stub_request(:put, endpoint + path)
end
def fixture_path
File.expand_path("../../fixtures", __FILE__)