OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'package:scheduled_test/scheduled_test.dart'; |
| 3 import '../../../lib/src/exit_codes.dart' as exit_codes; |
| 4 import '../../descriptor.dart' as d; |
| 5 import '../../test_pub.dart'; |
| 6 main() { |
| 7 initConfig(); |
| 8 integration( |
| 9 'requires the dependency name to match the remote pubspec ' 'name', |
| 10 () { |
| 11 ensureGit(); |
| 12 d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create(); |
| 13 d.dir(appPath, [d.appPubspec({ |
| 14 "weirdname": { |
| 15 "git": "../foo.git" |
| 16 } |
| 17 })]).create(); |
| 18 pubGet( |
| 19 error: contains('"name" field doesn\'t match expected name ' '"weirdname
".'), |
| 20 exitCode: exit_codes.DATA); |
| 21 }); |
| 22 } |
OLD | NEW |