Update rubocop to 2.3.1.

This commit is contained in:
Guo Xiang Tan
2020-07-24 17:16:52 +08:00
parent a9905ef7e5
commit c6202af005
24 changed files with 360 additions and 210 deletions

View File

@@ -164,16 +164,15 @@ describe Admin::BadgesController do
end
it 'updates the user title in a job' do
Jobs.expects(:enqueue).with(
:bulk_user_title_update,
expect_enqueued_with(job: :bulk_user_title_update, args: {
new_title: 'Shieldbearer',
granted_badge_id: badge.id,
action: Jobs::BulkUserTitleUpdate::UPDATE_ACTION
)
put "/admin/badges/#{badge.id}.json", params: {
name: "Shieldbearer"
}
}) do
put "/admin/badges/#{badge.id}.json", params: {
name: "Shieldbearer"
}
end
end
end
end