Skip to content
Snippets Groups Projects
Commit 1828bf11 authored by Kevin Moore's avatar Kevin Moore
Browse files

use pkg/test fail method where appropriate

parent 8489307d
No related branches found
No related tags found
Loading
......@@ -9,7 +9,7 @@ library stagehand.test.validate_templates;
import 'dart:io';
import 'package:grinder/grinder.dart';
import 'package:grinder/grinder.dart' hide fail;
import 'package:path/path.dart' as path;
import 'package:stagehand/stagehand.dart' as stagehand;
import 'package:test/test.dart';
......@@ -44,7 +44,7 @@ void _testGenerator(stagehand.Generator generator, Directory tempDir) {
var pubspecFile = new File(pubspecPath);
if (!pubspecFile.existsSync()) {
throw 'A pubspec much be defined!';
fail('A pubspec much be defined!');
}
Pub.get(runOptions: new RunOptions(workingDirectory: tempDir.path));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment