mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Allow use of USE_FOG_IN_TESTS
env var
This commit is contained in:
parent
36c52db8b9
commit
f3c7132103
2 changed files with 10 additions and 6 deletions
|
@ -7,9 +7,11 @@ describe Settings::ProfilePictureController, type: :controller do
|
|||
subject { patch :update, params: { user: avatar_params } }
|
||||
|
||||
before do
|
||||
stub_const("APP_CONFIG", {
|
||||
"fog" => {},
|
||||
})
|
||||
if ENV["USE_FOG_IN_TESTS"].blank?
|
||||
stub_const("APP_CONFIG", {
|
||||
"fog" => {},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
let(:avatar_params) do
|
||||
|
|
|
@ -4,9 +4,11 @@ require "rails_helper"
|
|||
|
||||
describe UseCase::DataExport::User, :data_export do
|
||||
before do
|
||||
stub_const("APP_CONFIG", {
|
||||
"fog" => {},
|
||||
})
|
||||
if ENV["USE_FOG_IN_TESTS"].blank?
|
||||
stub_const("APP_CONFIG", {
|
||||
"fog" => {},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
let(:user_params) do
|
||||
|
|
Loading…
Reference in a new issue