Sha256: 9c9a404ea39aa576876e84b6fb79578770a55549e3cbdf84b4e77f148aa665d2
Contents?: true
Size: 616 Bytes
Versions: 4
Compression:
Stored size: 616 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Github::Client::Repos::Statistics, '#punch_card' do let(:user) { 'peter-murach' } let(:repo) { 'github' } let(:request_path) { "/repos/#{user}/#{repo}/stats/punch_card" } before { stub_get(request_path).to_return(:body => body) } context "resource found" do let(:body) { fixture('repos/punch_card.json') } let(:status) { 200 } it { expect { subject.punch_card }.to raise_error(ArgumentError) } it "should get the resources" do subject.punch_card user, repo a_get(request_path).should have_been_made end end end
Version data entries
4 entries across 4 versions & 1 rubygems