
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> Co-authored-by: Thierry Moisan <thierry.moisan@gmail.com> Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com> Co-authored-by: Maxim Belkin <maxim.belkin@gmail.com> Co-authored-by: Issy Long <me@issyl0.co.uk> Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> Co-authored-by: Seeker <meaningseeking@protonmail.com>
16 lines
368 B
Ruby
16 lines
368 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "livecheck/strategy/page_match"
|
|
|
|
describe Homebrew::Livecheck::Strategy::PageMatch do
|
|
subject(:page_match) { described_class }
|
|
|
|
let(:url) { "http://api.github.com/Homebrew/brew/releases/latest" }
|
|
|
|
describe "::match?" do
|
|
it "returns true for any URL" do
|
|
expect(page_match.match?(url)).to be true
|
|
end
|
|
end
|
|
end
|