Disable fog in tests

This commit is contained in:
Karina Kwiatek 2023-03-05 13:53:27 +01:00
parent e59c151d83
commit f1809c4dd3
2 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,13 @@ require "rails_helper"
describe Settings::ProfilePictureController, type: :controller do describe Settings::ProfilePictureController, type: :controller do
describe "#update" do describe "#update" do
subject { patch :update, params: { user: avatar_params } } subject { patch :update, params: { user: avatar_params } }
before do
stub_const("APP_CONFIG", {
"fog" => {}
})
end
let(:avatar_params) do let(:avatar_params) do
{ {
profile_picture: fixture_file_upload("banana_racc.jpg", "image/jpeg") profile_picture: fixture_file_upload("banana_racc.jpg", "image/jpeg")

View File

@ -3,6 +3,12 @@
require "rails_helper" require "rails_helper"
describe UseCase::DataExport::User, :data_export do describe UseCase::DataExport::User, :data_export do
before do
stub_const("APP_CONFIG", {
"fog" => {}
})
end
let(:user_params) do let(:user_params) do
{ {
email: "fizzyraccoon@bsnss.biz", email: "fizzyraccoon@bsnss.biz",