mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-14 18:56:49 +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
|
||||
|
||||
BIN
spec/support/fixtures/thinking-cat.jpg
Normal file
BIN
spec/support/fixtures/thinking-cat.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user