mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
Bring api_helper.image from spree_api to support spree/api/products_controller_spec
This commit is contained in:
@@ -20,5 +20,9 @@ module OpenFoodNetwork
|
||||
json_response.should == { "error" => "You are not authorized to perform that action." }
|
||||
response.status.should == 401
|
||||
end
|
||||
|
||||
def image(filename)
|
||||
File.open(Rails.root + "spec/support/fixtures" + filename)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user