spec/helper.rb in wayback-0.1.0 vs spec/helper.rb in wayback-0.2.0
- old
+ new
@@ -23,38 +23,38 @@
c.syntax = :expect
end
end
def a_delete(path)
- a_request(:delete, Wayback::Default::ENDPOINT + path)
+ a_request(:delete, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def a_get(path)
- a_request(:get, Wayback::Default::ENDPOINT + path)
+ a_request(:get, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def a_post(path)
- a_request(:post, Wayback::Default::ENDPOINT + path)
+ a_request(:post, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def a_put(path)
- a_request(:put, Wayback::Default::ENDPOINT + path)
+ a_request(:put, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def stub_delete(path)
- stub_request(:delete, Wayback::Default::ENDPOINT + path)
+ stub_request(:delete, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def stub_get(path)
- stub_request(:get, Wayback::Default::ENDPOINT + path)
+ stub_request(:get, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def stub_post(path)
- stub_request(:post, Wayback::Default::ENDPOINT + path)
+ stub_request(:post, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def stub_put(path)
- stub_request(:put, Wayback::Default::ENDPOINT + path)
+ stub_request(:put, Wayback::Default::ENDPOINT + Wayback::Default::ENDPOINT_PATH + path)
end
def fixture_path
File.expand_path("../fixtures", __FILE__)
end