title: Set up Sails 0.10.x fixtures with barrels, but none are in the database
body: <p>Starting from <a href="https://github.com/bredikhin/sailsjs-mocha-testing-barrels-fixtures-example/blob/master/test/index.js" rel="nofollow">this example</a> (using Sails 0.9.x) from the Barrels author himself with slight modification based on in <a href="https://github.com/bredikhin/barrels/blob/master/test/index.test.js" rel="nofollow">Barrels' repo</a> (using Sails 0.10.x) and my project setup, here's my configuration: </p>
  
  <p><code>&lt;Project&gt;/test/specHelper.js</code> (which is the test bootstrap):</p>
  
  <pre><code>'use strict';
  
  var Sails   = require('sails')
    , Barrels = require('barrels')
    , barrels, fixtures;
  
  before(function(done) {
    Sails.lift(
      {
        // Configuration for testing
        environment: 'test',
        log: {
          level: 'error'
        },
        connections: {
          test: {
            adapter: 'sails-memory'
          }
        },
        models: {
          connection: 'test'
        },
        port: 98765
      },
  
      function(err, sails) {
        if (err)
          return done(err);
  
        // Load fixtures
        barrels   = new Barrels(process.cwd() + '/tests/fixtures');
        fixtures  = barrels.data;
        barrels.populate(function(err) {
          done(err, sails);
        });
  
      }
    );
  });
  
  after(function(done) {
    // Clear fixtures, etc.
    Sails.lower(done);
  });
  </code></pre>
  
  <p>and here's a spec file <code>&lt;Project&gt;/tests/EntitySpec.js</code></p>
  
  <pre><code>var chai    = require('chai');
    , expect  = chai.expect;
  
  describe('Entity', function() {
  
    describe('class methods', function() {
  
      describe('#a_method', function() {
  
        it('does something', function(done) {
          Entity.find().then(function(results) {
            console.log('in database', results);
            done();
          }).catch(done);
  
        });
      });
    });
  });
  </code></pre>
  
  <p>But the test database is empty. Running <code>barrels.populate</code> in the spec file doesn't solve this (though specs doesn't throw any error). I'm open for other fixture solution for Sails.js. Thanks.</p>