diff --git a/spec/support/api_helper.rb b/spec/support/api_helper.rb index bdd15e57d4..582f7ea341 100644 --- a/spec/support/api_helper.rb +++ b/spec/support/api_helper.rb @@ -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 diff --git a/spec/support/fixtures/thinking-cat.jpg b/spec/support/fixtures/thinking-cat.jpg new file mode 100644 index 0000000000..7e8524d367 Binary files /dev/null and b/spec/support/fixtures/thinking-cat.jpg differ