Module: Plutonium::Testing::PortalAccess

Extended by:
ActiveSupport::Concern
Includes:
AuthHelpers
Defined in:
lib/plutonium/testing/portal_access.rb

Instance Method Summary collapse

Methods included from AuthHelpers

#current_account, #login_as, #sign_out, #with_portal

Instance Method Details

#login_as_role(role_sym) ⇒ Object

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/plutonium/testing/portal_access.rb', line 40

def (role_sym)
  raise NotImplementedError, "Override #login_as_role(role_sym) to log in the given role"
end

#portal_root_path(portal_sym) ⇒ Object

Raises:

  • (NotImplementedError)


44
45
46
# File 'lib/plutonium/testing/portal_access.rb', line 44

def portal_root_path(portal_sym)
  raise NotImplementedError, "Override #portal_root_path(portal_sym) to return the URL"
end