Sha256: 6f27d64142e63d5478c7bbcec6f37015591a4c1db5163f71cc232660b3344dac

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'omniauth-gplus'
require 'minitest/autorun'
require 'minitest/pride'

OmniAuth.config.test_mode = true

def application
  ->(env) { [200, {}, ["Hello World."]]}
end

def strategy
  @strategy ||= begin
    OmniAuth::Strategies::GPlus.new(nil, *strategy_arguments).tap do |strategy|
      strategy.stubs(:request).returns(@request)
    end
  end
end

def strategy_arguments
  [@client_id, @client_secret, @options].compact
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omniauth-gplus-2.0.0.beta1 test/helper.rb
omniauth-gplus-1.2.0 test/helper.rb
omniauth-gplus-1.1.1 test/helper.rb
omniauth-gplus-1.1.0 test/helper.rb
omniauth-gplus-1.0.0 test/helper.rb