1 | require('./setup');
|
2 |
|
3 | describe('Integration', function() {
|
4 | var app;
|
5 | beforeEach(function() {
|
6 | app = require('express')();
|
7 | app = expo(app, fixturePath('simple'));
|
8 | require('../../expo-connect_assets')(app);
|
9 | require('../../expo-sequelize')(app);
|
10 | app.load();
|
11 | });
|
12 |
|
13 | it("no errors", function(done) {
|
14 | done();
|
15 | });
|
16 |
|
17 | describe("Command line", function() {
|
18 | var out;
|
19 |
|
20 | beforeEach(function() {
|
21 | out = app.cli().helpInformation();
|
22 | });
|
23 |
|
24 | ['assets-precompile', 'db-create', 'db-drop']
|
25 | .forEach(function(task) {
|
26 | it("have '"+task+"'", function() {
|
27 | out.indexOf(task).should.gt(1);
|
28 | });
|
29 | });
|
30 | });
|
31 | });
|