|
154 | 154 | around do |example|
|
155 | 155 | repo do
|
156 | 156 | `git commit --allow-empty -m "Initial commit"`
|
157 |
| - FileUtils.touch 'some-file' |
| 157 | + touch 'some-file' |
158 | 158 | `git add some-file`
|
159 | 159 | `git commit -m "Add file"`
|
160 | 160 | `git mv some-file renamed-file`
|
|
410 | 410 |
|
411 | 411 | it 'does not include submodules' do
|
412 | 412 | submodule = repo do
|
413 |
| - FileUtils.touch 'foo' |
| 413 | + touch 'foo' |
414 | 414 | `git add foo`
|
415 | 415 | `git commit -m "Initial commit"`
|
416 | 416 | end
|
|
434 | 434 | context 'when files were added' do
|
435 | 435 | around do |example|
|
436 | 436 | repo do
|
437 |
| - FileUtils.touch('some-file') |
| 437 | + touch('some-file') |
438 | 438 | `git add some-file`
|
439 | 439 | example.run
|
440 | 440 | end
|
|
446 | 446 | context 'when files were modified' do
|
447 | 447 | around do |example|
|
448 | 448 | repo do
|
449 |
| - FileUtils.touch('some-file') |
| 449 | + touch('some-file') |
450 | 450 | `git add some-file`
|
451 | 451 | `git commit -m "Initial commit"`
|
452 | 452 | echo('Hello', 'some-file')
|
|
461 | 461 | context 'when files were deleted' do
|
462 | 462 | around do |example|
|
463 | 463 | repo do
|
464 |
| - FileUtils.touch('some-file') |
| 464 | + touch('some-file') |
465 | 465 | `git add some-file`
|
466 | 466 | `git commit -m "Initial commit"`
|
467 | 467 | `git rm some-file`
|
|
475 | 475 | context 'when amending last commit' do
|
476 | 476 | around do |example|
|
477 | 477 | repo do
|
478 |
| - FileUtils.touch('some-file') |
| 478 | + touch('some-file') |
479 | 479 | `git add some-file`
|
480 | 480 | `git commit -m "Initial commit"`
|
481 |
| - FileUtils.touch('other-file') |
| 481 | + touch('other-file') |
482 | 482 | `git add other-file`
|
483 | 483 | example.run
|
484 | 484 | end
|
|
495 | 495 | around do |example|
|
496 | 496 | repo do
|
497 | 497 | `git commit --allow-empty -m "Initial commit"`
|
498 |
| - FileUtils.touch 'some-file' |
| 498 | + touch 'some-file' |
499 | 499 | `git add some-file`
|
500 | 500 | `git commit -m "Add file"`
|
501 | 501 | `git mv some-file renamed-file`
|
|
522 | 522 | `git commit -m "Add file"`
|
523 | 523 | `git rm some-symlink`
|
524 | 524 | FileUtils.mkdir 'some-symlink'
|
525 |
| - FileUtils.touch File.join('some-symlink', 'another-file') |
| 525 | + touch File.join('some-symlink', 'another-file') |
526 | 526 | `git add some-symlink`
|
527 | 527 | example.run
|
528 | 528 | end
|
|
542 | 542 | repo do
|
543 | 543 | `git commit --allow-empty -m "Initial commit"`
|
544 | 544 | FileUtils.mkdir 'some-directory'
|
545 |
| - FileUtils.touch File.join('some-directory', 'some-file') |
| 545 | + touch File.join('some-directory', 'some-file') |
546 | 546 | symlink('some-directory', 'some-symlink')
|
547 | 547 | `git add some-symlink some-directory`
|
548 | 548 | `git commit -m "Add file"`
|
|
0 commit comments