Sha256: 6e15f7e60451a410c9c623ec78a5473268c15263dd8c5ceb3f6d2381973de37a

Contents?: true

Size: 971 Bytes

Versions: 35

Compression:

Stored size: 971 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

35 entries across 35 versions & 1 rubygems

Version Path
git_reflow-0.9.9 spec/support/web_mocks.rb
git_reflow-0.9.8 spec/support/web_mocks.rb
git_reflow-0.9.7 spec/support/web_mocks.rb
git_reflow-0.9.6 spec/support/web_mocks.rb
git_reflow-0.9.5 spec/support/web_mocks.rb
git_reflow-0.9.4 spec/support/web_mocks.rb
git_reflow-0.9.3 spec/support/web_mocks.rb
git_reflow-0.9.2 spec/support/web_mocks.rb
git_reflow-0.9.1 spec/support/web_mocks.rb
git_reflow-0.9.0 spec/support/web_mocks.rb
git_reflow-0.8.4 spec/support/web_mocks.rb
git_reflow-0.8.3 spec/support/web_mocks.rb
git_reflow-0.8.2 spec/support/web_mocks.rb
git_reflow-0.8.1 spec/support/web_mocks.rb
git_reflow-0.8.0 spec/support/web_mocks.rb
git_reflow-0.7.5 spec/support/web_mocks.rb
git_reflow-0.7.4 spec/support/web_mocks.rb
git_reflow-0.7.2 spec/support/web_mocks.rb
git_reflow-0.7.1 spec/support/web_mocks.rb
git_reflow-0.7.0 spec/support/web_mocks.rb