diff options
| author | Jeppe Toustrup | 2017-02-25 11:09:57 +0000 |
|---|---|---|
| committer | Jeppe Toustrup | 2017-02-25 11:30:46 +0000 |
| commit | ebaf3cdc6a8cf637ec8f8b8a7e289a8d0dfd8f88 (patch) | |
| tree | e5da0f3084c87eebcc3d74a9cce05b6621f1eafc /Library/Homebrew/test/utils_spec.rb | |
| parent | 9a0116d5c4967441a6c85656ef7f15795cd02bbc (diff) | |
| download | brew-ebaf3cdc6a8cf637ec8f8b8a7e289a8d0dfd8f88.tar.bz2 | |
Add 'B' for bytes to cleanup command output
When `brew cleanup` is run it prints out a message like the following:
> This operation has freed approximately 222M of disk space.
The '222M' refers to megabytes but the normal acronym for megabytes would be
'MB'. The 'B' is also missing from kilobytes and gigabytes in the output, so
that's what this commit adds.
Diffstat (limited to 'Library/Homebrew/test/utils_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/utils_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/utils_spec.rb b/Library/Homebrew/test/utils_spec.rb index 040ad630b..b3fdedcb9 100644 --- a/Library/Homebrew/test/utils_spec.rb +++ b/Library/Homebrew/test/utils_spec.rb @@ -232,10 +232,10 @@ describe "globally-scoped helper methods" do specify "#disk_usage_readable" do expect(disk_usage_readable(1)).to eq("1B") expect(disk_usage_readable(1000)).to eq("1000B") - expect(disk_usage_readable(1024)).to eq("1K") - expect(disk_usage_readable(1025)).to eq("1K") - expect(disk_usage_readable(4_404_020)).to eq("4.2M") - expect(disk_usage_readable(4_509_715_660)).to eq("4.2G") + expect(disk_usage_readable(1024)).to eq("1KB") + expect(disk_usage_readable(1025)).to eq("1KB") + expect(disk_usage_readable(4_404_020)).to eq("4.2MB") + expect(disk_usage_readable(4_509_715_660)).to eq("4.2GB") end describe "#number_readable" do |
