Passing the separator argument as a positional parameter is deprecated

This commit is contained in:
Jasper Maes 2018-11-23 21:23:38 +01:00
parent b694788f7c
commit 07eb92b605
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Passing the separator argument as a positional parameter is deprecated
merge_request: 23334
author: Jasper Maes
type: other

View file

@ -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('_').pluralize}".to_sym) do
expect(service).to receive("migrate_#{record_class_name.parameterize(separator: '_').pluralize}".to_sym) do
expect(user.reload).to be_blocked
end