Sha256: 398baec05e95e76cab32d6e62a3ee64e353109912920da5a008dafe88612f188
Contents?: true
Size: 703 Bytes
Versions: 8
Compression:
Stored size: 703 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'rspec' require 'rspec/autorun' require 'webmock/rspec' require 'rack/test' require 'omniauth/core' require 'omniauth/test' require 'omniauth/oauth' require 'omniauth_china/oauth_china' Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.include WebMock config.include Rack::Test::Methods config.extend OmniAuth::Test::StrategyMacros, :type => :strategy end def strategy_class meta = self.class.metadata while meta.key?(:example_group) meta = meta[:example_group] end meta[:describes] end def app lambda{|env| [200, {}, ['Hello']]} end WebMock.disable_net_connect!
Version data entries
8 entries across 8 versions & 1 rubygems