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