mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +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." }
|
json_response.should == { "error" => "You are not authorized to perform that action." }
|
||||||
response.status.should == 401
|
response.status.should == 401
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def image(filename)
|
||||||
|
File.open(Rails.root + "spec/support/fixtures" + filename)
|
||||||
|
end
|
||||||
end
|
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