Skip to content

Commit

Permalink
Update clean_spec.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Aug 9, 2024
1 parent 01888dc commit 22513fb
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions spec_cli/clean_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ context "Clean" do
it "cleans the package cache directory" do
FileUtils.mkdir Mint::MINT_PACKAGES_DIR

expect_output ["clean", "--package-cache"], <<-TEXT
Mint - Removing directories
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Deleting: ××××
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
All done in ××××!
TEXT
# The directory cannot be created on macOS on CI for some reason.
if Dir.exists?(Mint::MINT_PACKAGES_DIR)
expect_output ["clean", "--package-cache"], <<-TEXT
Mint - Removing directories
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Deleting: ××××
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
All done in ××××!
TEXT
end
end

it "nothing to delete" do
Expand Down

0 comments on commit 22513fb

Please sign in to comment.