anchor.diff:        return tuneup.processArgs(['init'], directory: foo).then((_) {
           expect(new File('foo/bin/helloworld.dart').existsSync(), true);
         }).then((_) {
  +        _setupPub();
           return tuneup.processArgs(['check'], directory: foo);
         }).then((_) {
           expect(logger.out, contains('No issues found; analyzed 1 source file in'));
  
positive.code:       return tuneup.processArgs(['init'], directory: foo).then((_) {
          expect(new File('foo/bin/helloworld.dart').existsSync(), true);
        }).then((_) {
          return tuneup.processArgs(['check'], directory: foo);
        }).then((_) {
          expect(logger.out, contains('No issues found; analyzed 1 source file in'));
  
negative.code:   });
  }
  
  void _setupPub() {
    File pubspec = new File('foo/pubspec.yaml');
    pubspec.writeAsStringSync('name: foo\n');
    Process.runSync('pub', ['get'], workingDirectory: 'foo');
  }
  
  class _Logger implements CliLogger {
    StringBuffer _out = new StringBuffer();
    StringBuffer _err = new StringBuffer();
  