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:15 +05:00 committed by GitHub
parent a874d833f9
commit 090d71163b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,16 +71,8 @@ describe Resource do
end end
specify "when livecheck block is set" do specify "when livecheck block is set" do
r = described_class.new do expect(livecheck_resource.livecheck.url).to eq("https://brew.sh/foo-1.0.tar.gz")
url "https://brew.sh/test-0.0.1.tgz" expect(livecheck_resource.livecheck.regex).to eq(/foo/)
livecheck do
url "https://brew.sh/foo-1.0.tar.gz"
regex(/foo/)
end
end
expect(r.livecheck.url).to eq("https://brew.sh/foo-1.0.tar.gz")
expect(r.livecheck.regex).to eq(/foo/)
end end
end end