Index: utils/tests/pub/update/pub_update_test.dart |
diff --git a/utils/tests/pub/update/pub_update_test.dart b/utils/tests/pub/update/pub_update_test.dart |
index 997f145719a4db222ec27170b7b7642637b89846..a32b6361b1c2273259ced410acc3ae20b080ed86 100644 |
--- a/utils/tests/pub/update/pub_update_test.dart |
+++ b/utils/tests/pub/update/pub_update_test.dart |
@@ -6,16 +6,14 @@ library pub_tests; |
import 'dart:io'; |
-import '../../../../pkg/scheduled_test/lib/scheduled_test.dart'; |
- |
-import '../descriptor.dart' as d; |
+import '../../../../pkg/unittest/lib/unittest.dart'; |
import '../test_pub.dart'; |
main() { |
initConfig(); |
group('requires', () { |
integration('a pubspec', () { |
- d.dir(appPath, []).create(); |
+ dir(appPath, []).scheduleCreate(); |
schedulePub(args: ['update'], |
error: new RegExp(r'^Could not find a file named "pubspec.yaml"'), |
@@ -23,9 +21,9 @@ main() { |
}); |
integration('a pubspec with a "name" key', () { |
- d.dir(appPath, [ |
- d.pubspec({"dependencies": {"foo": null}}) |
- ]).create(); |
+ dir(appPath, [ |
+ pubspec({"dependencies": {"foo": null}}) |
+ ]).scheduleCreate(); |
schedulePub(args: ['update'], |
error: new RegExp(r'^pubspec.yaml is missing the required "name" ' |
@@ -37,51 +35,51 @@ main() { |
integration('adds itself to the packages', () { |
// The symlink should use the name in the pubspec, not the name of the |
// directory. |
- d.dir(appPath, [ |
- d.pubspec({"name": "myapp_name"}), |
- d.libDir('myapp_name') |
- ]).create(); |
+ dir(appPath, [ |
+ pubspec({"name": "myapp_name"}), |
+ libDir('myapp_name') |
+ ]).scheduleCreate(); |
schedulePub(args: ['update'], |
output: new RegExp(r"Dependencies updated!$")); |
- d.dir(packagesPath, [ |
- d.dir("myapp_name", [ |
- d.file('myapp_name.dart', 'main() => "myapp_name";') |
+ dir(packagesPath, [ |
+ dir("myapp_name", [ |
+ file('myapp_name.dart', 'main() => "myapp_name";') |
]) |
- ]).validate(); |
+ ]).scheduleValidate(); |
}); |
integration('does not adds itself to the packages if it has no "lib" ' |
'directory', () { |
// The symlink should use the name in the pubspec, not the name of the |
// directory. |
- d.dir(appPath, [ |
- d.pubspec({"name": "myapp_name"}), |
- ]).create(); |
+ dir(appPath, [ |
+ pubspec({"name": "myapp_name"}), |
+ ]).scheduleCreate(); |
schedulePub(args: ['update'], |
output: new RegExp(r"Dependencies updated!$")); |
- d.dir(packagesPath, [ |
- d.nothing("myapp_name") |
- ]).validate(); |
+ dir(packagesPath, [ |
+ nothing("myapp_name") |
+ ]).scheduleValidate(); |
}); |
integration('does not add a package if it does not have a "lib" ' |
'directory', () { |
// Using a path source, but this should be true of all sources. |
- d.dir('foo', [ |
- d.libPubspec('foo', '0.0.0-not.used') |
- ]).create(); |
+ dir('foo', [ |
+ libPubspec('foo', '0.0.0-not.used') |
+ ]).scheduleCreate(); |
- d.dir(appPath, [ |
- d.pubspec({"name": "myapp", "dependencies": {"foo": {"path": "../foo"}}}) |
- ]).create(); |
+ dir(appPath, [ |
+ pubspec({"name": "myapp", "dependencies": {"foo": {"path": "../foo"}}}) |
+ ]).scheduleCreate(); |
schedulePub(args: ['update'], |
output: new RegExp(r"Dependencies updated!$")); |
- d.packagesDir({"foo": null}).validate(); |
+ packagesDir({"foo": null}).scheduleValidate(); |
}); |
} |