Sha256: a544bf699cc0a7a1a6c443c9022ee5d314856f3e6fdc59908df90100902476cf
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 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, "#{Githu3::Client::BaseUrl}#{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.3 | spec/helper.rb |