diff options
| author | mansimarkaur | 2017-05-31 02:00:27 +0530 |
|---|---|---|
| committer | mansimarkaur | 2017-08-27 01:18:40 +0530 |
| commit | c1799bb49712b9362b54e8bccae1e721ce6542e0 (patch) | |
| tree | b39112e2b089c998ae7a7e3d54d200dbc18b1611 | |
| parent | 551e5dd94578062e0ab42bc56e0fdd106807839b (diff) | |
| download | brew-c1799bb49712b9362b54e8bccae1e721ce6542e0.tar.bz2 | |
Added tests for disk_cleanup and unremovable kegs
| -rw-r--r-- | Library/Homebrew/test/cleanup_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Homebrew/test/cleanup_spec.rb b/Library/Homebrew/test/cleanup_spec.rb index 4e5e42efa..81cd63147 100644 --- a/Library/Homebrew/test/cleanup_spec.rb +++ b/Library/Homebrew/test/cleanup_spec.rb @@ -63,6 +63,28 @@ describe Homebrew::Cleanup do end end + specify "::update_disk_cleanup_size" do + shutup do + described_class.instance_eval("@disk_cleanup_size = 0") + described_class.update_disk_cleanup_size(128) + end + expect(described_class.instance_variable_get("@disk_cleanup_size")).to eq(128) + end + + specify "::disk_cleanup_size" do + shutup do + described_class.instance_eval("@disk_cleanup_size = 0") + end + expect(described_class.disk_cleanup_size).to eq(described_class.instance_variable_get("@disk_cleanup_size")) + end + + specify "::unremovable_kegs" do + shutup do + described_class.unremovable_kegs + end + expect(described_class.instance_variable_get("@unremovable_kegs")).to eq([]) + end + specify "::cleanup_formula" do f1 = Class.new(Testball) do version "1.0" |
