Sha256: 94cdf382ec73beec94255bf06c43e9da8006c67ca69e1fbbcea0dd37436ec5ea

Contents?: true

Size: 753 Bytes

Versions: 3

Compression:

Stored size: 753 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_filter '/spec'
  add_filter '/example'
end

require 'warden/github'
require File.expand_path('../../example/simple_app', __FILE__)
require 'rack/test'
require 'addressable/uri'
require 'webmock/rspec'

RSpec.configure do |config|
  config.include(Rack::Test::Methods)

  def app
    Example.app
  end

  def stub_user_session_request
    stub_request(:get, "https://api.github.com/user/sessions/active?browser_session_id=abcdefghijklmnop").
      with(:headers => {'Accept'=>'application/vnd.github.v3+json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Authorization'=>'token the_token', 'Content-Type'=>'application/json', 'User-Agent'=>"Octokit Ruby Gem #{Octokit::VERSION}"})
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
warden-github-1.3.1 spec/spec_helper.rb
warden-github-1.3.0 spec/spec_helper.rb
warden-github-1.2.0 spec/spec_helper.rb