Remove usage of random sample values in specs (#24869)
This commit is contained in:
parent
b84bc2de5d
commit
604e1c2b11
4 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ describe UserMailer do
|
|||
|
||||
shared_examples 'localized subject' do |*args, **kwrest|
|
||||
it 'renders subject localized for the locale of the receiver' do
|
||||
locale = I18n.available_locales.sample
|
||||
locale = :de
|
||||
receiver.update!(locale: locale)
|
||||
expect(mail.subject).to eq I18n.t(*args, **kwrest.merge(locale: locale))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue