1
0
Fork 0

Add more specs for Account#locale

This commit is contained in:
Alex Kotov 2020-04-08 14:57:06 +05:00
parent 1a2281c88b
commit 7b9116affe
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -98,7 +98,14 @@ RSpec.describe Account do
end
describe '#locale' do
def allow_value(*)
super.for :locale
end
it { is_expected.to validate_presence_of :locale }
it { is_expected.to allow_value :en }
it { is_expected.to allow_value :ru }
end
describe '#nickname' do