Module: AuthorizationHelpers::Request

Defined in:
lib/spree/core/testing_support/authorization_helpers.rb

Defined Under Namespace

Classes: SuperAbility

Instance Method Summary collapse

Instance Method Details

#stub_authorization!Object



20
21
22
23
# File 'lib/spree/core/testing_support/authorization_helpers.rb', line 20

def stub_authorization!
  before(:all) { Spree::Ability.register_ability(AuthorizationHelpers::Request::SuperAbility) }
  after(:all) { Spree::Ability.remove_ability(AuthorizationHelpers::Request::SuperAbility) }
end