Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: sdk/lib/_internal/pub/test/global/deactivate/deactivate_package_test.dart

Issue 341433009: Pub global deactivate command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/global/deactivate/deactivate_package_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/activate/empty_constraint_test.dart b/sdk/lib/_internal/pub/test/global/deactivate/deactivate_package_test.dart
similarity index 60%
copy from sdk/lib/_internal/pub/test/global/activate/empty_constraint_test.dart
copy to sdk/lib/_internal/pub/test/global/deactivate/deactivate_package_test.dart
index 516ae65b4d4d2436c5d12bd734edfeca41083750..f6e9056422b46b34bed4048316f6f2f94124074d 100644
--- a/sdk/lib/_internal/pub/test/global/activate/empty_constraint_test.dart
+++ b/sdk/lib/_internal/pub/test/global/deactivate/deactivate_package_test.dart
@@ -10,14 +10,14 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('errors if the constraint matches no versions', () {
+ integration('deactivates an active package', () {
servePackages([
- packageMap("foo", "1.0.0"),
- packageMap("foo", "1.0.1")
+ packageMap("foo", "1.0.0")
]);
- schedulePub(args: ["global", "activate", "foo", ">1.1.0"],
- error: "Package foo has no versions that match >1.1.0.",
- exitCode: exit_codes.DATA);
+ schedulePub(args: ["global", "activate", "foo"]);
+
+ schedulePub(args: ["global", "deactivate", "foo"],
+ output: "Deactivated package foo 1.0.0.");
nweiz 2014/06/30 20:59:04 Shouldn't this assert that the lockfile no longer
});
}

Powered by Google App Engine
This is Rietveld 408576698