Sha256: 76c591e6ae2711c9e28670e7310a385b04016452f02ab2d23fcb8efa590e1c53
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
require 'helper' describe Octokit::Client do it 'should work with basic auth and password' do stub_get("https://foo:bar@api.github.com/repos/baz/quux/commits?per_page=35&sha=master"). with(:headers => {'Accept'=>'*/*'}). to_return(:status => 200, :body => '{"commits":[]}', :headers => {}) proc { Octokit::Client.new(:login => 'foo', :password => 'bar').commits('baz/quux') }.should_not raise_exception end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.6.5 | spec/octokit/client_spec.rb |