Sha256: 970d9abaab086f98bed44465dfd0a74c83bbb756fcb22dddc2784703dfc86c3d
Contents?: true
Size: 661 Bytes
Versions: 6
Compression:
Stored size: 661 Bytes
Contents
# -*- encoding: utf-8 -*- require 'helper' describe Octokit do after do Octokit.reset end describe ".respond_to?" do it "is true if method exists" do expect(Octokit.respond_to?(:new, true)).to eq(true) end end describe ".new" do it "is a Octokit::Client" do expect(Octokit.new).to be_a Octokit::Client end end describe ".delegate" do it "delegates missing methods to Octokit::Client" do stub_get("/repos/pengwynn/octokit/issues"). to_return(json_response('issues.json')) issues = Octokit.issues('pengwynn/octokit') expect(issues.last.user.login).to eq('fellix') end end end
Version data entries
6 entries across 6 versions & 1 rubygems