gladiator = require '../..'

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