| Index: sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/global/activate/same_version_test.dart b/sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
|
| similarity index 78%
|
| rename from sdk/lib/_internal/pub/test/global/activate/same_version_test.dart
|
| rename to sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
|
| index 3d0209837b147f0c1e520b5f720b9f791d752287..36508558add05dc1db99f9299355c5ef088e432c 100644
|
| --- a/sdk/lib/_internal/pub/test/global/activate/same_version_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/global/activate/ignores_active_version_test.dart
|
| @@ -6,7 +6,7 @@ import '../../test_pub.dart';
|
|
|
| main() {
|
| initConfig();
|
| - integration('keeps previously activated version if it meets the constraint',
|
| + integration('ignores previously activated version',
|
| () {
|
| servePackages([
|
| packageMap("foo", "1.2.3"),
|
| @@ -16,10 +16,11 @@ main() {
|
| // Activate 1.2.3.
|
| schedulePub(args: ["global", "activate", "foo", "1.2.3"]);
|
|
|
| - // Activating it again re-resolves but maintains the version.
|
| + // Activating it again resolves to the new best version.
|
| schedulePub(args: ["global", "activate", "foo", ">1.0.0"], output: """
|
| Package foo is currently active at version 1.2.3.
|
| +Downloading foo 1.3.0...
|
| Resolving dependencies...
|
| -Activated foo 1.2.3.""");
|
| +Activated foo 1.3.0.""");
|
| });
|
| }
|
|
|