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