Corrected test name

This commit is contained in:
mansimarkaur 2017-08-19 17:17:38 +05:30
parent ec30de69c3
commit 5f7a93bceb

View File

@ -105,12 +105,12 @@ describe Homebrew::Cleanup do
end end
describe "::cleanup_logs" do describe "::cleanup_logs" do
let(:path) { (HOMEBREW_LOGS/"delete_me") }
before do before do
path.mkpath path.mkpath
end end
let(:path) { (HOMEBREW_LOGS/"delete_me") }
it "cleans all logs if prune all" do it "cleans all logs if prune all" do
ARGV << "--prune=all" ARGV << "--prune=all"
described_class.cleanup_logs described_class.cleanup_logs
@ -264,7 +264,7 @@ describe Homebrew::Cleanup do
expect(described_class.prune?(foo, days_default: "1")).to be_truthy expect(described_class.prune?(foo, days_default: "1")).to be_truthy
end 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 expect(described_class.prune?(foo, days_default: "2")).to be_falsey
end end
end end