Sha256: 8383713a8e8b024600bc08c17f5b5c51d257436f5bac6649a1929fd3c1b8b641
Contents?: true
Size: 904 Bytes
Versions: 2
Compression:
Stored size: 904 Bytes
Contents
unless ENV['CI'] require 'simplecov' SimpleCov.start do add_filter '/spec' add_filter '/example' end end require 'rack/test' require 'warden/github/rails/test_helpers' require 'addressable/uri' # Load the test rails app: ENV['RAILS_ENV'] ||= 'test' require 'rails_app/config/environment' # Setup configs needed to run: ENV['GITHUB_CLIENT_ID'] = 'test_client_id' ENV['GITHUB_CLIENT_SECRET'] = 'test_client_secret' RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.order = 'random' config.include Rack::Test::Methods config.include Warden::GitHub::Rails::TestHelpers # Reset warden's login states after each test. config.after { Warden.test_reset! } # This is how rack-test gets access to the app. def app RailsApp::Application end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
warden-github-rails-1.0.0 | spec/spec_helper.rb |
warden-github-rails-0.0.1 | spec/spec_helper.rb |