Skip to content

Commit

Permalink
Use file.dirname in most cleaner tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Visher committed Apr 28, 2022
1 parent 8852208 commit 0d81864
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Library/Homebrew/test/cleaner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
it "removes '.la' files" do
file = f.lib/"foo.la"

f.lib.mkpath
file.dirname.mkpath
touch file

cleaner.clean
Expand All @@ -107,7 +107,7 @@
it "removes 'perllocal' files" do
file = f.lib/"perl5/darwin-thread-multi-2level/perllocal.pod"

(f.lib/"perl5/darwin-thread-multi-2level").mkpath
file.dirname.mkpath
touch file

cleaner.clean
Expand All @@ -118,7 +118,7 @@
it "removes '.packlist' files" do
file = f.lib/"perl5/darwin-thread-multi-2level/auto/test/.packlist"

(f.lib/"perl5/darwin-thread-multi-2level/auto/test").mkpath
file.dirname.mkpath
touch file

cleaner.clean
Expand All @@ -129,7 +129,7 @@
it "removes 'charset.alias' files" do
file = f.lib/"charset.alias"

f.lib.mkpath
file.dirname.mkpath
touch file

cleaner.clean
Expand Down

0 comments on commit 0d81864

Please sign in to comment.