Module: Refinery::Testing::ControllerMacros::Authentication

Defined in:
lib/refinery/testing/controller_macros/authentication.rb

Instance Method Summary collapse

Instance Method Details

#refinery_loginObject



16
17
18
# File 'lib/refinery/testing/controller_macros/authentication.rb', line 16

def 
  let(:logged_in_user) { Refinery::Core::NilUser.new }
end

#refinery_login_with(*roles) ⇒ Object



6
7
8
9
# File 'lib/refinery/testing/controller_macros/authentication.rb', line 6

def (*roles)
  Refinery.deprecate('refinery_login_with', when: '3.1', replacement: 'refinery_login')
  
end

#refinery_login_with_factory(factory) ⇒ Object



11
12
13
14
# File 'lib/refinery/testing/controller_macros/authentication.rb', line 11

def (factory)
  Refinery.deprecate('refinery_login_with_factory', when: '3.1', replacement: 'refinery_login')
  
end