Sha256: 7e4da10494d5d04ac838c59d0995eb2802e2179116071f588d9cb3fe02923e76

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

require 'bundler/setup'

ENV['RACK_ENV'] = 'test'
$LOAD_PATH.push File.join(File.dirname(__FILE__), '..', 'lib')

require 'rack/test'
require 'sinatra/auth/github'
require 'sinatra/auth/github/test/test_helper'
require 'webmock/rspec'

require_relative '../lib/problem_child'
WebMock.disable_net_connect!

RSpec.configure do |config|
  config.include(Sinatra::Auth::Github::Test::Helper)
end

ENV['GITHUB_CLIENT_ID'] = '1234'
ENV['GITHUB_CLIENT_SECRET'] = 'asdf'

def with_env(key, value)
  old_env = ENV[key]
  ENV[key] = value
  yield
  ENV[key] = old_env
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
problem_child-3.1.0 spec/spec_helper.rb
problem_child-3.0.1 spec/spec_helper.rb
problem_child-3.0.0 spec/spec_helper.rb