diff options
author | Olivier Gonzalez <ogonzalez@gitlab.com> | 2018-05-07 23:34:19 -0400 |
---|---|---|
committer | Olivier Gonzalez <ogonzalez@gitlab.com> | 2018-05-07 23:38:05 -0400 |
commit | 065d44538b0fdf8ee6a2fb9e676123a790ddcb29 (patch) | |
tree | b2b72cb8856ac938d9837ae54c50ea94fbeeac2f /spec | |
parent | 0eb74426b3eeacf92cd144e6ddc336adbe43ca1e (diff) | |
download | gitlab-ce-065d44538b0fdf8ee6a2fb9e676123a790ddcb29.tar.gz |
Cleanly handle plural name for ghost user migration
Diffstat (limited to 'spec')
-rw-r--r-- | spec/support/services/migrate_to_ghost_user_service_shared_examples.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/services/migrate_to_ghost_user_service_shared_examples.rb b/spec/support/services/migrate_to_ghost_user_service_shared_examples.rb index adfd256dff1..1478c6b5a47 100644 --- a/spec/support/services/migrate_to_ghost_user_service_shared_examples.rb +++ b/spec/support/services/migrate_to_ghost_user_service_shared_examples.rb @@ -86,7 +86,7 @@ shared_examples "migrating a deleted user's associated records to the ghost user end it "blocks the user before #{record_class_name} migration begins" do - expect(service).to receive("migrate_#{record_class_name.parameterize('_')}s".to_sym) do + expect(service).to receive("migrate_#{record_class_name.parameterize('_').pluralize}".to_sym) do expect(user.reload).to be_blocked end |