mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
88d7429041
2. fixes gem dependencies issues 3. fixes failing migrations 4. updates depricated factory_girl => factory_bot and fixes related issues Signed-off-by: zmagod <zmago_devetak@yahoo.com>
10 lines
206 B
Ruby
10 lines
206 B
Ruby
module ControllerMacros
|
|
def login_user
|
|
before(:each) do
|
|
@request.env['devise.mapping'] = Devise.mappings[:user]
|
|
user = create :user
|
|
user.confirm
|
|
sign_in user
|
|
end
|
|
end
|
|
end
|