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
|
}); |
} |