gladiator = require '../..'

describe 'gladiator', () ->
  describe 'validator', () ->
    describe 'null', () ->
      it 'should allow an optional null', () ->
        validator = new gladiator {
          type: 'null'
        }
        
        validator.valid.should.equal true
      
      it 'show allow a required null', () ->
        validator = new gladiator {
          required: true
          type: 'null'
        }
        
        validator.valid.should.equal true