Sha256: 7f474baab355fed4f1f22bc0653b957767a462b2129012f9952e72f4defebfd5

Contents?: true

Size: 586 Bytes

Versions: 7

Compression:

Stored size: 586 Bytes

Contents

module Refinery
  module Testing
    module ControllerMacros
      module Authentication

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

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

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

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
refinerycms-testing-3.0.6 lib/refinery/testing/controller_macros/authentication.rb
refinerycms-testing-3.0.5 lib/refinery/testing/controller_macros/authentication.rb
refinerycms-testing-3.0.4 lib/refinery/testing/controller_macros/authentication.rb
refinerycms-testing-3.0.3 lib/refinery/testing/controller_macros/authentication.rb
refinerycms-testing-3.0.2 lib/refinery/testing/controller_macros/authentication.rb
refinerycms-testing-3.0.1 lib/refinery/testing/controller_macros/authentication.rb
refinerycms-testing-3.0.0 lib/refinery/testing/controller_macros/authentication.rb