lib/spree/api/testing_support/helpers.rb in solidus_api-1.0.7 vs lib/spree/api/testing_support/helpers.rb in solidus_api-1.1.0.beta1
- old
+ new
@@ -26,10 +26,10 @@
end
# This method can be overriden (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: "spree@example.com")
+ @current_api_user ||= stub_model(Spree::LegacyUser, email: "spree@example.com", spree_roles: [])
end
def image(filename)
File.open(Spree::Api::Engine.root + "spec/fixtures" + filename)
end