Add account after registrar create

This commit is contained in:
Martin Lensment 2015-05-25 13:32:27 +03:00
parent c1211a0ac5
commit f7a4dee1b6
5 changed files with 16 additions and 4 deletions

View file

@ -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?