Add more specs for Account#locale
This commit is contained in:
parent
1a2281c88b
commit
7b9116affe
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue