Sha256: 93888a96961e95e6e4bda1c1d36b339a3580cf33c44a467f83d9fb9ba61e57c8

Contents?: true

Size: 1.02 KB

Versions: 33

Compression:

Stored size: 1.02 KB

Contents

# encoding: utf-8

require 'spec_helper'


describe Github::Request do
  let(:github) { Github::API.new  }
  let(:path) { 'github.api/repos/users' }
  let(:params) { {} }
  let(:options) { {} }

  it "knows how to make get request" do
    github.should_receive(:request).with(:get, path, params, options)
    github.get_request path, params, options
  end

  it "knows how to make patch request" do
    github.should_receive(:request).with(:patch, path, params, options)
    github.patch_request path, params, options
  end

  it "knows how to make post request" do
    github.should_receive(:request).with(:post, path, params, options)
    github.post_request path, params, options
  end

  it "knows how to make put request" do
    github.should_receive(:request).with(:put, path, params, options)
    github.put_request path, params, options
  end

  it "knows how to make delete request" do
    github.should_receive(:request).with(:delete, path, params, options)
    github.delete_request path, params, options
  end
end # Github::Request

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
github_api-0.9.5 spec/github/request_spec.rb
github_api-0.9.4 spec/github/request_spec.rb
github_api-0.9.3 spec/github/request_spec.rb
github_api-0.9.2 spec/github/request_spec.rb
github_api-0.9.1 spec/github/request_spec.rb
github_api-0.9.0 spec/github/request_spec.rb
github_api-0.8.11 spec/github/request_spec.rb
github_api-0.8.10 spec/github/request_spec.rb
github_api-0.8.9 spec/github/request_spec.rb
github_api-0.8.8 spec/github/request_spec.rb
github_api-0.8.7 spec/github/request_spec.rb
github_api-0.8.6 spec/github/request_spec.rb
github_api-0.8.5 spec/github/request_spec.rb
github_api-0.8.4 spec/github/request_spec.rb
github_api-0.8.3 spec/github/request_spec.rb
github_api-0.8.2 spec/github/request_spec.rb
github_api-0.8.1 spec/github/request_spec.rb
github_api-0.8.0 spec/github/request_spec.rb
github_api-0.7.2 spec/github/request_spec.rb
github_api-0.7.1 spec/github/request_spec.rb