Sha256: 170188c52d4140f1c86a64ecdca4710f491c6ba0d6ca2abc45f1f52a989cce02

Contents?: true

Size: 804 Bytes

Versions: 17

Compression:

Stored size: 804 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'}

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

17 entries across 17 versions & 1 rubygems

Version Path
mumuki-laboratory-7.4.2 spec/login_helper.rb
mumuki-laboratory-7.4.1 spec/login_helper.rb
mumuki-laboratory-7.4.0 spec/login_helper.rb
mumuki-laboratory-7.3.1 spec/login_helper.rb
mumuki-laboratory-7.3.0 spec/login_helper.rb
mumuki-laboratory-7.2.0 spec/login_helper.rb
mumuki-laboratory-7.1.0 spec/login_helper.rb
mumuki-laboratory-7.0.12 spec/login_helper.rb
mumuki-laboratory-7.0.11 spec/login_helper.rb
mumuki-laboratory-7.0.10 spec/login_helper.rb
mumuki-laboratory-7.0.9 spec/login_helper.rb
mumuki-laboratory-7.0.8 spec/login_helper.rb
mumuki-laboratory-7.0.7 spec/login_helper.rb
mumuki-laboratory-7.0.6 spec/login_helper.rb
mumuki-laboratory-7.0.5 spec/login_helper.rb
mumuki-laboratory-7.0.4 spec/login_helper.rb
mumuki-laboratory-7.0.3 spec/login_helper.rb