| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import '../../descriptor.dart' as d; | 5 import '../../descriptor.dart' as d; |
| 6 import '../../test_pub.dart'; | 6 import '../../test_pub.dart'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 integration("doesn't upgrade a locked Git package with a new compatible " | 9 integration("doesn't upgrade a locked Git package with a new compatible " |
| 10 "constraint", () { | 10 "constraint", () { |
| 11 ensureGit(); | 11 ensureGit(); |
| 12 | 12 |
| 13 d.git('foo.git', [ | 13 d.git('foo.git', [ |
| 14 d.libDir('foo', 'foo 1.0.0'), | 14 d.libDir('foo', 'foo 1.0.0'), |
| 15 d.libPubspec("foo", "1.0.0") | 15 d.libPubspec("foo", "1.0.0") |
| 16 ]).create(); | 16 ]).create(); |
| 17 | 17 |
| 18 d.appDir({"foo": {"git": "../foo.git"}}).create(); | 18 d.appDir({"foo": {"git": "../foo.git"}}).create(); |
| 19 | 19 |
| 20 pubGet(); | 20 pubGet(args: ["--packages-dir"]); |
| 21 | 21 |
| 22 d.dir(packagesPath, [ | 22 d.dir(packagesPath, [ |
| 23 d.dir('foo', [ | 23 d.dir('foo', [ |
| 24 d.file('foo.dart', 'main() => "foo 1.0.0";') | 24 d.file('foo.dart', 'main() => "foo 1.0.0";') |
| 25 ]) | 25 ]) |
| 26 ]).validate(); | 26 ]).validate(); |
| 27 | 27 |
| 28 d.git('foo.git', [ | 28 d.git('foo.git', [ |
| 29 d.libDir('foo', 'foo 1.0.1'), | 29 d.libDir('foo', 'foo 1.0.1'), |
| 30 d.libPubspec("foo", "1.0.1") | 30 d.libPubspec("foo", "1.0.1") |
| 31 ]).commit(); | 31 ]).commit(); |
| 32 | 32 |
| 33 d.appDir({"foo": {"git": "../foo.git", "version": ">=1.0.0"}}).create(); | 33 d.appDir({"foo": {"git": "../foo.git", "version": ">=1.0.0"}}).create(); |
| 34 | 34 |
| 35 pubGet(); | 35 pubGet(args: ["--packages-dir"]); |
| 36 | 36 |
| 37 d.dir(packagesPath, [ | 37 d.dir(packagesPath, [ |
| 38 d.dir('foo', [ | 38 d.dir('foo', [ |
| 39 d.file('foo.dart', 'main() => "foo 1.0.0";') | 39 d.file('foo.dart', 'main() => "foo 1.0.0";') |
| 40 ]) | 40 ]) |
| 41 ]).validate(); | 41 ]).validate(); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| OLD | NEW |