Sha256: bc56006b690411853cc27fe9c4307ea22b8ce7d87ded3eeb863d373f54e7f180

Contents?: true

Size: 1010 Bytes

Versions: 4

Compression:

Stored size: 1010 Bytes

Contents

def stub_get(path, endpoint = GitReflow.git_server.class.api_endpoint)
  stub_request(:get, endpoint + path)
end

def stub_post(path, endpoint = GitReflow.git_server.class.api_endpoint)
  stub_request(:post, endpoint + path)
end

def stub_patch(path, endpoint = Github.endpoint.to_s)
  stub_request(:patch, endpoint + path)
end

def stub_put(path, endpoint = Github.endpoint.to_s)
  stub_request(:put, endpoint + path)
end

def stub_delete(path, endpoint = Github.endpoint.to_s)
  stub_request(:delete, endpoint + path)
end

def a_get(path, endpoint = Github.endpoint.to_s)
  a_request(:get, endpoint + path)
end

def a_post(path, endpoint = Github.endpoint.to_s)
  a_request(:post, endpoint + path)
end

def a_patch(path, endpoint = Github.endpoint.to_s)
  a_request(:patch, endpoint + path)
end

def a_put(path, endpoint = Github.endpoint)
  a_request(:put, endpoint + path)
end

def a_delete(path, endpoint = Github.endpoint)
  a_request(:delete, endpoint + path)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git_reflow-0.8.10 spec/support/web_mocks.rb
git_reflow-0.8.9 spec/support/web_mocks.rb
git_reflow-0.8.8 spec/support/web_mocks.rb
git_reflow-0.8.7 spec/support/web_mocks.rb