 describe('models/db object', ()->
   db = require('./../src/server/models/db')
   it('should contain sequelize object', ()->
-    should(db).have.property('sequelize')
+    db.should.have.property('sequelize')
   )
   it('should contain Player model', ()->
-    should(db).have.property('Player')
+    db.should.have.property('Player')
   )
   it('should contain Game model', ()->
-    should(db).have.property('Game')
+    db.should.have.property('Game')
   )
   it('should contain PlayerGame model', ()->
-    should(db).have.property('PlayerGame')
+    db.should.have.property('PlayerGame')
   )
 )
 

          throw player
        )
        .error((err)->
          should(err).be.eql({ name: [ 'String is empty' ] })
          done()
        )
      )

      it('should save user if only name is provided', (done)->
        db.Player.create({name: 'Borland'}).success(
          (savedPlayer)->
            savedPlayer.name.should.be.eql('Borland')
            db.Player.find({where: {name: 'Borland'}}).success(
              (foundPlayer)->
                foundPlayer.name.should.be.eql(savedPlayer.name)
                should(foundPlayer.vk_id).be.eql(savedPlayer.vk_id)
                foundPlayer.service_role.should.be.eql(savedPlayer.service_role)
                done()
            )
        )
