anchor.diff:    });
   }
   
  +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();
  
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:         expect(f.existsSync(), true);
          f.writeAsStringSync(_errorText);
        }).then((_) {
          _setupPub();
          return tuneup.processArgs(['check'], directory: foo);
        }).then((_) {
          fail('expected analysis errors');
  