| Index: sdk/lib/_internal/pub/test/lish/uses_publish_to_url_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart b/sdk/lib/_internal/pub/test/lish/uses_publish_to_url_test.dart
|
| similarity index 52%
|
| copy from sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart
|
| copy to sdk/lib/_internal/pub/test/lish/uses_publish_to_url_test.dart
|
| index 42f79431d630a6b1ac02ab1945d9c6988860acef..ae011fe0df180b3a08fe7f2b1eeae438a4ead609 100644
|
| --- a/sdk/lib/_internal/pub/test/barback/fails_if_args_with_all_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/lish/uses_publish_to_url_test.dart
|
| @@ -4,20 +4,17 @@
|
|
|
| import 'package:scheduled_test/scheduled_test.dart';
|
|
|
| -import '../../lib/src/exit_codes.dart' as exit_codes;
|
| import '../descriptor.dart' as d;
|
| import '../test_pub.dart';
|
| -import 'utils.dart';
|
|
|
| main() {
|
| initConfig();
|
| + integration('preview shows an error if the package is private', () {
|
| + var pkg = packageMap("test_pkg", "1.0.0");
|
| + pkg["publishTo"] = "http://example.com";
|
| + d.dir(appPath, [d.pubspec(pkg)]).create();
|
|
|
| - setUp(() {
|
| - d.appDir().create();
|
| + schedulePub(args: ["lish", "--dry-run"],
|
| + output: contains("Publishing test_pkg 1.0.0 to http://example.com"));
|
| });
|
| -
|
| - pubBuildAndServeShouldFail("if a directory is passed with --all",
|
| - args: ["example", "--all"],
|
| - error: 'Directory names are not allowed if "--all" is passed.',
|
| - exitCode: exit_codes.USAGE);
|
| }
|
|
|