spec/spec_helper.rb in omniauth-auth0-3.0.0 vs spec/spec_helper.rb in omniauth-auth0-3.1.0

- old
+ new

@@ -1,14 +1,15 @@ $LOAD_PATH.unshift File.expand_path(__dir__) $LOAD_PATH.unshift File.expand_path('../lib', __dir__) +require 'multi_json' require 'simplecov' SimpleCov.start if ENV['CI'] == 'true' - require 'codecov' - SimpleCov.formatter = SimpleCov::Formatter::Codecov + require 'simplecov-cobertura' + SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter end require 'rspec' require 'rack/test' require 'webmock/rspec' @@ -20,10 +21,12 @@ RSpec.configure do |config| config.include WebMock::API config.include Rack::Test::Methods config.extend OmniAuth::Test::StrategyMacros, type: :strategy + config.filter_run focus: true + config.run_all_when_everything_filtered = true def app @app || make_application end @@ -37,10 +40,10 @@ Sinatra.new do configure do enable :sessions set :show_exceptions, false - set :session_secret, 'TEST' + set :session_secret, '9771aff2c634257053c62ba072c54754bd2cc92739b37e81c3eda505da48c2ec' end use OmniAuth::Builder do provider :auth0, client_id, secret, domain, options end