Sha256: 24d512337efebdbb3600789e22fbafe763817186826ce706d4e75d3aaaa5a57e
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
# -*- encoding: utf-8 -*- require 'helper' describe Octokit do after do Octokit.reset end describe ".respond_to?" do it "should be true if method exists" do Octokit.respond_to?(:new, true).should be_true end end describe ".new" do it "should be a Octokit::Client" do Octokit.new.should be_a Octokit::Client end end describe ".delegate" do it "should delegate missing methods to Octokit::Client" do stub_get("https://api.github.com/repos/pengwynn/octokit/issues"). to_return(:status => 200, :body => fixture('v3/issues.json')) issues = Octokit.issues('pengwynn/octokit') issues.last.user.login.should == 'fellix' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.6.4 | spec/octokit_spec.rb |