Use keyword arguments for ApplicationService calls
Not all services are using keywords, which breaks those calls in Ruby 3
This commit is contained in:
@@ -50,7 +50,7 @@ RSpec.describe 'E-Mail settings', type: :feature do
|
||||
|
||||
expect(LdapManager::UpdateEmailPassword).to receive(:call).and_return(true)
|
||||
expect(LdapManager::UpdateEmailMaildrop).to receive(:call)
|
||||
.with(user.dn, user.address).and_return(true)
|
||||
.with(dn: user.dn, address: user.address).and_return(true)
|
||||
|
||||
visit setting_path(:email)
|
||||
fill_in 'Current account password', with: "valid password"
|
||||
|
||||
@@ -29,7 +29,7 @@ RSpec.describe 'Profile settings', type: :feature do
|
||||
|
||||
scenario 'works with valid input' do
|
||||
expect(LdapManager::UpdateDisplayName).to receive(:call)
|
||||
.with(user.dn, "Marky Mark").and_return(true)
|
||||
.with(dn: user.dn, display_name: "Marky Mark").and_return(true)
|
||||
|
||||
visit setting_path(:profile)
|
||||
fill_in 'Display name', with: "Marky Mark"
|
||||
|
||||
Reference in New Issue
Block a user