Sha256: 1061d29c665fbd34a8b5bf5f84a63f30984873feb0ef39caaf1a2f60d419027c

Contents?: true

Size: 831 Bytes

Versions: 86

Compression:

Stored size: 831 Bytes

Contents

Mumukit::Login.configure do |config|
  config.auth0 = struct
  config.saml = struct

  config.mucookie_domain = '.localmumuki.io'
  config.mucookie_secret_key = 'abcde1213456123456'
  config.mucookie_secret_salt = 'mucookie test secret salt'
  config.mucookie_sign_salt = 'mucookie test sign salt'
end

OmniAuth.config.mock_auth[:developer] =
  OmniAuth::AuthHash.new provider: 'developer',
                         uid: 'johndoe@test.com',
                         credentials: {},
                         info: { first_name: 'John', last_name: 'Doe', name: 'John Doe', nickname: 'johndoe', image: 'user_shape.png' }

def set_current_user!(user)
  allow_any_instance_of(ApplicationController).to receive(:current_user_uid).and_return(user.uid)
end

def set_automatic_login!(test_mode)
  OmniAuth.config.test_mode = test_mode
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 spec/login_helper.rb
mumuki-laboratory-9.22.0 spec/login_helper.rb
mumuki-laboratory-9.21.0 spec/login_helper.rb
mumuki-laboratory-9.20.1 spec/login_helper.rb
mumuki-laboratory-9.20.0 spec/login_helper.rb
mumuki-laboratory-9.19.0 spec/login_helper.rb
mumuki-laboratory-9.18.1 spec/login_helper.rb
mumuki-laboratory-9.18.0 spec/login_helper.rb
mumuki-laboratory-9.17.0 spec/login_helper.rb
mumuki-laboratory-9.16.0 spec/login_helper.rb
mumuki-laboratory-9.15.0 spec/login_helper.rb
mumuki-laboratory-9.14.1 spec/login_helper.rb
mumuki-laboratory-9.14.0 spec/login_helper.rb
mumuki-laboratory-9.13.2 spec/login_helper.rb
mumuki-laboratory-9.13.1 spec/login_helper.rb
mumuki-laboratory-9.13.0 spec/login_helper.rb
mumuki-laboratory-9.12.1 spec/login_helper.rb
mumuki-laboratory-9.12.0 spec/login_helper.rb
mumuki-laboratory-9.11.0 spec/login_helper.rb
mumuki-laboratory-9.10.0 spec/login_helper.rb