File tree Expand file tree Collapse file tree 2 files changed +27
-29
lines changed
Expand file tree Collapse file tree 2 files changed +27
-29
lines changed Original file line number Diff line number Diff line change @@ -476,27 +476,27 @@ Feature: Generate a distribution archive of a project
476476
477477 When I try `zipinfo -1 foo.zip`
478478 Then STDOUT should contain:
479- """
480- foo/bar.txt
481- """
479+ """
480+ foo/bar.txt
481+ """
482482 And STDOUT should contain:
483- """
484- foo/foo.txt
485- """
483+ """
484+ foo/foo.txt
485+ """
486486
487487 When I run `echo "foo.txt" > foo/.distignore`
488488 And I try `wp dist-archive foo --force`
489489 Then the foo.zip file should exist
490490
491491 When I try `zipinfo -1 foo.zip`
492492 Then STDOUT should contain:
493- """
494- foo/bar.txt
495- """
493+ """
494+ foo/bar.txt
495+ """
496496 And STDOUT should not contain:
497- """
498- foo/foo.txt
499- """
497+ """
498+ foo/foo.txt
499+ """
500500
501501 Scenario : Removes existing files in the tarball
502502 Given an empty directory
@@ -517,24 +517,24 @@ Feature: Generate a distribution archive of a project
517517
518518 When I try `tar -tf foo.tar.gz`
519519 Then STDOUT should contain:
520- """
521- foo/bar.txt
522- """
520+ """
521+ foo/bar.txt
522+ """
523523 And STDOUT should contain:
524- """
525- foo/foo.txt
526- """
524+ """
525+ foo/foo.txt
526+ """
527527
528528 When I run `echo "foo.txt" > foo/.distignore`
529529 And I try `wp dist-archive foo --format=targz --force`
530530 Then the foo.tar.gz file should exist
531531
532532 When I try `tar -tf foo.tar.gz`
533533 Then STDOUT should contain:
534- """
535- foo/bar.txt
536- """
534+ """
535+ foo/bar.txt
536+ """
537537 And STDOUT should not contain:
538- """
539- foo/foo.txt
540- """
538+ """
539+ foo/foo.txt
540+ """
Original file line number Diff line number Diff line change 11# The "Examples" dataprovider is needed due to differences in zip and tar.
22@require-php-7.1
3- Feature : Generate a distribution archive of a project
3+ Feature : Generate a distribution archive of a project with .distignore
44
55 Scenario : Ignores backup files with a period and tilde
66 Given an empty directory
@@ -100,10 +100,8 @@ Feature: Generate a distribution archive of a project
100100 <?php
101101 echo 'Hello world';
102102 """
103-
104- Then the foo/.git directory should exist
105-
106- Then the foo/.git/subfolder/version.control file should exist
103+ And the foo/.git directory should exist
104+ And the foo/.git/subfolder/version.control file should exist
107105
108106 When I run `wp dist-archive foo --format=<format> `
109107 Then STDOUT should match /^Success: Created foo.<extension> \(Size: \d+(?:\.\d*)? [a-zA-Z]{1,3}\)$/
You can’t perform that action at this time.
0 commit comments