Bring api_helper.image from spree_api to support spree/api/products_controller_spec

This commit is contained in:
luisramos0
2019-07-20 10:20:34 +01:00
parent 25451eed6b
commit a57504ba1f
2 changed files with 4 additions and 0 deletions

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB