lib/spree/api/testing_support/helpers.rb in solidus_api-2.11.17 vs lib/spree/api/testing_support/helpers.rb in solidus_api-3.0.0.rc2
- old
+ new
@@ -25,10 +25,10 @@
def stub_authentication!
allow(Spree.user_class).to receive(:find_by).with(hash_including(:spree_api_key)) { current_api_user }
end
- # This method can be overriden (with a let block) inside a context
+ # This method can be overridden (with a let block) inside a context
# For instance, if you wanted to have an admin user instead.
def current_api_user
@current_api_user ||= stub_model(Spree::LegacyUser, email: "solidus@example.com", spree_roles: [])
end