
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>
21 lines
571 B
Ruby
21 lines
571 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "livecheck/strategy/xorg"
|
|
|
|
describe Homebrew::Livecheck::Strategy::Xorg do
|
|
subject(:xorg) { described_class }
|
|
|
|
let(:xorg_url) { "https://www.x.org/archive/individual/app/abc-1.2.3.tar.bz2" }
|
|
let(:non_xorg_url) { "https://brew.sh/test" }
|
|
|
|
describe "::match?" do
|
|
it "returns true if the argument provided is an X.Org URL" do
|
|
expect(xorg.match?(xorg_url)).to be true
|
|
end
|
|
|
|
it "returns false if the argument provided is not an X.Org URL" do
|
|
expect(xorg.match?(non_xorg_url)).to be false
|
|
end
|
|
end
|
|
end
|