diff --git a/spec/controllers/settings/profile_picture_controller_spec.rb b/spec/controllers/settings/profile_picture_controller_spec.rb index 6e1bc692..d36168c7 100644 --- a/spec/controllers/settings/profile_picture_controller_spec.rb +++ b/spec/controllers/settings/profile_picture_controller_spec.rb @@ -5,6 +5,13 @@ require "rails_helper" describe Settings::ProfilePictureController, type: :controller do describe "#update" do subject { patch :update, params: { user: avatar_params } } + + before do + stub_const("APP_CONFIG", { + "fog" => {} + }) + end + let(:avatar_params) do { profile_picture: fixture_file_upload("banana_racc.jpg", "image/jpeg") diff --git a/spec/lib/use_case/data_export/user_spec.rb b/spec/lib/use_case/data_export/user_spec.rb index 9f01e1ef..91ee7e08 100644 --- a/spec/lib/use_case/data_export/user_spec.rb +++ b/spec/lib/use_case/data_export/user_spec.rb @@ -3,6 +3,12 @@ require "rails_helper" describe UseCase::DataExport::User, :data_export do + before do + stub_const("APP_CONFIG", { + "fog" => {} + }) + end + let(:user_params) do { email: "fizzyraccoon@bsnss.biz",