Sha256: 6261c924194011f3385df6970e13f86e885bd11dcdf969074fdb27a50b0c4889
Contents?: true
Size: 973 Bytes
Versions: 27
Compression:
Stored size: 973 Bytes
Contents
############################################################################## # OmniAuth Plugin ############################################################################## begin require 'omniauth' require 'rspectacular/mock_authentications/omniauth' ### # Tell OmniAuth to just return whatever hash we want for each auth type # OmniAuth.config.test_mode = true OmniAuth.config.mock_auth[:facebook] = OmniAuth::Facebook::MockAuthentication.user OmniAuth.config.mock_auth[:twitter] = OmniAuth::Twitter::MockAuthentication.user ### # Except we don't want OmniAuth to fake anything when doing live tests # RSpec.configure do |config| config.around(:each, :js => true) do |example| previous_omniauth_test_mode = OmniAuth.config.test_mode OmniAuth.config.test_mode = false example.run OmniAuth.config.test_mode = previous_omniauth_test_mode end end rescue LoadError end
Version data entries
27 entries across 27 versions & 1 rubygems