Sha256: 9b1af6ceecf63deeed2c852f57cf58c5094435f581b08f70a470bea0737df47c
Contents?: true
Size: 839 Bytes
Versions: 3
Compression:
Stored size: 839 Bytes
Contents
require File.expand_path('../../../helper', __FILE__) describe Octokit::Client::Network do before do @client = Octokit::Client.new(:login => 'sferik') end describe ".network_meta" do it "should return network meta" do stub_get("https://github.com/sferik/rails_admin/network_meta"). to_return(:body => fixture("network_meta.json")) network_meta = @client.network_meta("sferik/rails_admin") network_meta.blocks.first.name.should == "sferik" end end describe ".network_data" do it "should return network data" do stub_get("https://github.com/sferik/rails_admin/network_data_chunk"). to_return(:body => fixture("network_data.json")) network_data = @client.network_data("sferik/rails_admin") network_data.first.login.should == "rosenfeld" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.5.2 | spec/octokit/client/network_spec.rb |
octokit-0.5.1 | spec/octokit/client/network_spec.rb |
octokit-0.5.0 | spec/octokit/client/network_spec.rb |