     data = parseFile('autodoc.js')
 
     it 'can read @typedefs', ->
-      getTypeDef(data, 'TypeInfo').should.include {
+      getTypeDef(data, 'TypeInfo').should.have.properties {
         name: 'TypeInfo',
         identifier: 'type-TypeInfo',
         description: '<p>A custom type defined by a library.</p>\n',

      data = parseExampleFile('redundant.js')

      it 'can infer namespaces from object expressions', ->
        listNamespaces(data).should.include 'R.objects'

      it 'also respects the @memberOf tag for explicitly defining namespaces', ->
        listMembersForNamespace(data, 'R.strings').should.eql ['split', 'toUpperCase']

        data.description.should.match /^\s*<p>This is a description.<\/p>\s*$/

      it 'gets all namespaces', ->
        listNamespaces(data).should.containEql 'Foo'
        listNamespaces(data).should.containEql 'Foo.Bar'
        listNamespaces(data).should.not.containEql 'privateFunction'
        listNamespaces(data).should.containEql '[private]'

      it 'groups functions by namespace', ->
        listMembersForNamespace(data, 'Foo').should.eql ['getName']
