Sha256: eaa77bb1bd41b6155ee9d880cad9fafce3d5964be4c3779ddbebcbebad8b396d

Contents?: true

Size: 832 Bytes

Versions: 3

Compression:

Stored size: 832 Bytes

Contents

$LOAD_PATH.unshift File.expand_path("..", __FILE__)
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)

if RUBY_VERSION >= "1.9"
  require "simplecov"
  require "simplecov-lcov"
  require "coveralls"

  SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true

  SimpleCov.formatters = [
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::LcovFormatter,
    Coveralls::SimpleCov::Formatter
  ]

  SimpleCov.start do
    minimum_coverage(78.48)
  end
end

require "rspec"
require "rack/test"
require "webmock/rspec"
require "omniauth"
require "omniauth-oauth2"

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
  config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
  config.include Rack::Test::Methods
  config.include WebMock::API
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-oauth2-1.7.3 spec/helper.rb
omniauth-oauth2-1.8.0 spec/helper.rb
omniauth-oauth2-1.7.2 spec/helper.rb