mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
Remove unused spec support method
This commit is contained in:
committed by
Rohan Mitchell
parent
18c7b03f3d
commit
699da16049
@@ -19,11 +19,6 @@ module AuthenticationWorkflow
|
||||
admin_user
|
||||
end
|
||||
|
||||
def stub_authorization!
|
||||
before(:all) { Spree::Ability.register_ability(AuthorizationHelpers::Request::SuperAbility) }
|
||||
after(:all) { Spree::Ability.remove_ability(AuthorizationHelpers::Request::SuperAbility) }
|
||||
end
|
||||
|
||||
def login_to_admin_section
|
||||
admin_role = Spree::Role.find_or_create_by_name!('admin')
|
||||
admin_user = create(:user,
|
||||
|
||||
Reference in New Issue
Block a user