mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Stub spree_api_key on Spree::LegacyUser when signing in as regular user
This commit is contained in:
@@ -8,6 +8,7 @@ module Spree
|
||||
user.stub(:has_spree_role?).with("admin").and_return(false)
|
||||
user.stub(:enterprises) { [] }
|
||||
user.stub(:owned_groups) { [] }
|
||||
user.stub(:spree_api_key) { "spree_api_key" }
|
||||
user
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user