mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Add account after registrar create
This commit is contained in:
parent
c1211a0ac5
commit
f7a4dee1b6
5 changed files with 16 additions and 4 deletions
|
@ -62,6 +62,10 @@ describe Registrar do
|
|||
@registrar.errors.full_messages.should match_array([])
|
||||
end
|
||||
|
||||
it 'should have a cash account' do
|
||||
@registrar.cash_account.should_not be_nil
|
||||
end
|
||||
|
||||
it 'should validates uniqueness of code' do
|
||||
registrar = Fabricate.build(:registrar, code: @registrar.code)
|
||||
registrar.valid?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue