Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/profiles_controller_spec.rb')
-rw-r--r--spec/controllers/profiles_controller_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/controllers/profiles_controller_spec.rb b/spec/controllers/profiles_controller_spec.rb
index 2bcb47f97ab..4f350ddf1ef 100644
--- a/spec/controllers/profiles_controller_spec.rb
+++ b/spec/controllers/profiles_controller_spec.rb
@@ -128,6 +128,16 @@ RSpec.describe ProfilesController, :request_store do
expect(user.reload.discord).to eq(discord_user_id)
expect(response).to have_gitlab_http_status(:found)
end
+
+ it 'allows updating user specified mastodon username', :aggregate_failures do
+ mastodon_username = '@robin@example.com'
+ sign_in(user)
+
+ put :update, params: { user: { mastodon: mastodon_username } }
+
+ expect(user.reload.mastodon).to eq(mastodon_username)
+ expect(response).to have_gitlab_http_status(:found)
+ end
end
describe 'GET audit_log' do