var assert = require('assert');
var Feature = require('../feature');

describe('Feature', function () {
  describe('schema', function () {
    it('successfully creates a valid document');
    it('fails at creating an invalid document');
  });

  describe('.search()', function () {
    it('performs an empty search, returning all commands', function (done) {
      Feature.search('', function (docs) {
        assert.equal(7, docs.length);
        done();
      });
    });

    it('performs a case-insensitive search for a command', function (done) {
      Feature.search('git ADD', function (docs) {
        assert.equal(1, docs.length)
        done();
      });
    });

    it('performs a search for a command that does not exist', function (done) {
      Feature.search('git yolo', function (docs) {
        assert.equal(0, docs.length);
        done();
      });
    });
  });
});

@@ -25,16 +25,49 @@
 sert');%0A
+var seeds = require('../seeds');%0A
 var Feat
@@ -130,16 +130,67 @@
 on () %7B%0A
+  before(function (done) %7B%0A    seeds(done);%0A  %7D);%0A%0A
   descri

Use the database seeds from the Feature spec