Fix lint errors
This commit is contained in:
parent
f1809c4dd3
commit
36c52db8b9
|
@ -8,13 +8,13 @@ describe Settings::ProfilePictureController, type: :controller do
|
||||||
|
|
||||||
before do
|
before do
|
||||||
stub_const("APP_CONFIG", {
|
stub_const("APP_CONFIG", {
|
||||||
"fog" => {}
|
"fog" => {},
|
||||||
})
|
})
|
||||||
end
|
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"),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ describe Settings::ProfilePictureController, type: :controller do
|
||||||
|
|
||||||
it "enqueues a Sidekiq job to process the uploaded profile picture" do
|
it "enqueues a Sidekiq job to process the uploaded profile picture" do
|
||||||
subject
|
subject
|
||||||
expect(::CarrierWave::Workers::ProcessAsset).to have_enqueued_sidekiq_job("User", user.id.to_s, "profile_picture")
|
expect(CarrierWave::Workers::ProcessAsset).to have_enqueued_sidekiq_job("User", user.id.to_s, "profile_picture")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "redirects to the edit_user_profile page" do
|
it "redirects to the edit_user_profile page" do
|
||||||
|
|
|
@ -5,8 +5,8 @@ require "rails_helper"
|
||||||
describe UseCase::DataExport::User, :data_export do
|
describe UseCase::DataExport::User, :data_export do
|
||||||
before do
|
before do
|
||||||
stub_const("APP_CONFIG", {
|
stub_const("APP_CONFIG", {
|
||||||
"fog" => {}
|
"fog" => {},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:user_params) do
|
let(:user_params) do
|
||||||
|
@ -41,8 +41,8 @@ describe UseCase::DataExport::User, :data_export do
|
||||||
location: "Binland",
|
location: "Binland",
|
||||||
motivation_header: "",
|
motivation_header: "",
|
||||||
website: "https://retrospring.net",
|
website: "https://retrospring.net",
|
||||||
allow_long_questions: true
|
allow_long_questions: true,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ describe UseCase::DataExport::User, :data_export do
|
||||||
privacy_noindex: false,
|
privacy_noindex: false,
|
||||||
sharing_enabled: false,
|
sharing_enabled: false,
|
||||||
sharing_autoclose: false,
|
sharing_autoclose: false,
|
||||||
sharing_custom_url: nil
|
sharing_custom_url: nil,
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display_name: "Fizzy Raccoon",
|
display_name: "Fizzy Raccoon",
|
||||||
|
@ -108,12 +108,12 @@ describe UseCase::DataExport::User, :data_export do
|
||||||
created_at: user.profile.created_at.as_json,
|
created_at: user.profile.created_at.as_json,
|
||||||
updated_at: user.profile.updated_at.as_json,
|
updated_at: user.profile.updated_at.as_json,
|
||||||
anon_display_name: nil,
|
anon_display_name: nil,
|
||||||
allow_long_questions: true
|
allow_long_questions: true,
|
||||||
},
|
},
|
||||||
roles: {
|
roles: {
|
||||||
administrator: false,
|
administrator: false,
|
||||||
moderator: false
|
moderator: false,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue