Sha256: dbad9ab212d6d32545b07c02282cca32f25ddc24443e3957be2575737a815206
Contents?: true
Size: 572 Bytes
Versions: 1
Compression:
Stored size: 572 Bytes
Contents
$:.unshift File.expand_path('..', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__) require 'simplecov' SimpleCov.start require 'githu3' require 'rspec' require 'webmock/rspec' def fixture_path File.expand_path("../fixtures", __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end def stub_get url, fixture_name, headers={ 'Authorization'=>'token myvalidtoken' } stub_request(:get, "https://api.github.com#{url}"). with(:headers => headers). to_return(:status => 200, :body => fixture("#{fixture_name}.json")) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
githu3-0.0.2 | spec/helper.rb |