Module: Arrthorizer::RSpec::Matchers::Roles

Defined in:
lib/arrthorizer/rspec/matchers.rb

Defined Under Namespace

Classes: AppliesToUser

Instance Method Summary collapse

Instance Method Details

#apply_to_user(user, context = {}) ⇒ Object



40
41
42
# File 'lib/arrthorizer/rspec/matchers.rb', line 40

def apply_to_user(user, context = {})
  AppliesToUser.new(user).with_context(context)
end