Sha256: 6780c7638d8d4892eb0c7b9f1731e8eeab4e7582245d5ef1f84d688542146e49
Contents?: true
Size: 608 Bytes
Versions: 7
Compression:
Stored size: 608 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Github::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
7 entries across 7 versions & 1 rubygems