Module: Gaku::Testing::AuthHelpers::Feature

Defined in:
lib/gaku/testing/auth_helpers.rb

Instance Method Summary collapse

Instance Method Details

#as(user) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/gaku/testing/auth_helpers.rb', line 14

def as(user)
  if user.is_a?(Symbol)
     create("#{user.to_sym}_user"), scope: :user
  else
     user, scope: :user
  end
end