Update Library/Homebrew/test/resource_spec.rb

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
This commit is contained in:
Mohammad Zain Abbas 2022-07-02 13:01:30 +05:00 committed by GitHub
parent 090d71163b
commit 7ab79e5423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,15 +82,7 @@ describe Resource do
end
specify "livecheck block defined in resources" do
r = described_class.new do
url "https://brew.sh/test-1.0.tbz"
livecheck do
url "https://brew.sh/foo-1.0.tar.gz"
regex(/foo/)
end
end
expect(r.livecheckable?).to be true
expect(livecheck_resource.livecheckable?).to be true
end
end