aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormansimarkaur2017-08-19 17:17:38 +0530
committermansimarkaur2017-08-27 01:18:41 +0530
commit5f7a93bcebf2f18f4740f0fd5e676555880c5d71 (patch)
treec2c3f075638b0c294bf80183644eb2127f8843c2
parentec30de69c3b3e1c3afb3638e0e13d3518148871d (diff)
downloadbrew-5f7a93bcebf2f18f4740f0fd5e676555880c5d71.tar.bz2
Corrected test name
-rw-r--r--Library/Homebrew/test/cleanup_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/cleanup_spec.rb b/Library/Homebrew/test/cleanup_spec.rb
index cf3af5d35..3e9cdc79c 100644
--- a/Library/Homebrew/test/cleanup_spec.rb
+++ b/Library/Homebrew/test/cleanup_spec.rb
@@ -105,12 +105,12 @@ describe Homebrew::Cleanup do
end
describe "::cleanup_logs" do
+ let(:path) { (HOMEBREW_LOGS/"delete_me") }
+
before do
path.mkpath
end
- let(:path) { (HOMEBREW_LOGS/"delete_me") }
-
it "cleans all logs if prune all" do
ARGV << "--prune=all"
described_class.cleanup_logs
@@ -264,7 +264,7 @@ describe Homebrew::Cleanup do
expect(described_class.prune?(foo, days_default: "1")).to be_truthy
end
- it "returns true when path_modified_time >= days_default" do
+ it "returns false when path_modified_time >= days_default" do
expect(described_class.prune?(foo, days_default: "2")).to be_falsey
end
end