Sha256: b369a3053655ad8dbfd60392b3c886d2b4d7774f3db3c2b917f43e6c4fc2231d

Contents?: true

Size: 554 Bytes

Versions: 6

Compression:

Stored size: 554 Bytes

Contents

require "bundler/setup"

ENV['RACK_ENV'] = 'test'
$:.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

6 entries across 6 versions & 1 rubygems

Version Path
problem_child-2.1.1 spec/spec_helper.rb
problem_child-2.1.0 spec/spec_helper.rb
problem_child-2.0.0 spec/spec_helper.rb
problem_child-1.1.0 spec/spec_helper.rb
problem_child-1.0.0 spec/spec_helper.rb
problem_child-0.2.0 spec/spec_helper.rb