Module: Lopata::Role::Methods

Included in:
Scenario
Defined in:
lib/lopata/role.rb

Overview

To be included in Lopata::Scenario

Instance Method Summary collapse

Instance Method Details

#current_roleSymbol?

Returns user role for current scenario or nil, if scenario is running without user.

Returns:

  • (Symbol, nil)

    user role for current scenario or nil, if scenario is running without user.



31
32
33
# File 'lib/lopata/role.rb', line 31

def current_role
  [:as]
end