Sha256: 55e776b08d45b28d8a325584afef2c9273eab83b2f02a8266d238a79d34be35d
Contents?: true
Size: 828 Bytes
Versions: 5
Compression:
Stored size: 828 Bytes
Contents
# -*- encoding: utf-8 -*- require 'helper' 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
5 entries across 5 versions & 3 rubygems