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