'use strict';

var MockUI        = require('./mock-ui');
var MockAnalytics = require('./mock-analytics');
var Cli           = require('../../lib/cli');

module.exports = function ember(args) {
  var cli;

  args.push('--disable-analytics');
  args.push('--watcher=node');
  cli = new Cli({
    inputStream:  [],
    outputStream: [],
    cliArgs:      args,
    Leek: MockAnalytics,
    UI: MockUI,
    testing: true
  });

  return cli;
};

@@ -103,17 +103,17 @@
 ');%0Avar 
-C
+c
 li      
@@ -146,16 +146,789 @@
 cli');%0A%0A
+/*%0A  Accepts a single array argument, that contains the%0A  %60process.argv%60 style arguments.%0A%0A  Example:%0A%0A  %60%60%60%0A  ember test --no-build --test-port=4567%0A  %60%60%60%0A%0A  In this example, %60process.argv%60 would be something similar to:%0A%0A  %60%60%60%0A  %5B'path/to/node', 'path/to/bin/ember', 'test', '--no-build', '--test-port=4567'%5D%0A  %60%60%60%0A%0A%0A  And this could be emulated by calling:%0A%0A  %60%60%60%0A  ember(%5B'test', '--no-build', '--test-port=4567'%5D);%0A  %60%60%60%0A%0A  ---%0A%0A  The return value of this helper is a promise that resolves%0A  with an object that contains the following properties:%0A%0A  * %60exitCode%60 is the normal exit code in standard command invocation%0A  * %60ui%60 is the %60ui%60 object that was used for the invocation (which is%0A    a %60MockUI%60 instance), this can be used to inspect the commands output.%0A%0A*/%0A
 module.e
@@ -968,16 +968,24 @@
  var cli
+Instance
 ;%0A%0A  arg
@@ -1055,16 +1055,20 @@
  cli
- = new C
+Instance = c
 li(%7B
@@ -1214,13 +1214,21 @@
 turn cli
+Instance
 ;%0A%7D;%0A

Make ember test helper clearer.