Module: Refinery::Testing::ControllerMacros::Authentication
- Defined in:
- lib/refinery/testing/controller_macros/authentication.rb
Instance Method Summary collapse
- #refinery_login ⇒ Object
- #refinery_login_with(*roles) ⇒ Object
- #refinery_login_with_factory(factory) ⇒ Object
Instance Method Details
#refinery_login ⇒ Object
16 17 18 |
# File 'lib/refinery/testing/controller_macros/authentication.rb', line 16 def refinery_login 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 refinery_login_with(*roles) Refinery.deprecate('refinery_login_with', when: '3.1', replacement: 'refinery_login') refinery_login end |
#refinery_login_with_factory(factory) ⇒ Object
11 12 13 14 |
# File 'lib/refinery/testing/controller_macros/authentication.rb', line 11 def refinery_login_with_factory(factory) Refinery.deprecate('refinery_login_with_factory', when: '3.1', replacement: 'refinery_login') refinery_login end |