Sparkle: Add test
This commit is contained in:
parent
9fdc902630
commit
740d5d3bcd
16
Library/Homebrew/test/livecheck/strategy/sparkle_spec.rb
Normal file
16
Library/Homebrew/test/livecheck/strategy/sparkle_spec.rb
Normal file
@ -0,0 +1,16 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "livecheck/strategy/sparkle"
|
||||
|
||||
describe Homebrew::Livecheck::Strategy::Sparkle do
|
||||
subject(:sparkle) { described_class }
|
||||
|
||||
let(:url) { "https://www.example.com/example/appcast.xml" }
|
||||
|
||||
describe "::match?" do
|
||||
it "returns true for any URL" do
|
||||
expect(sparkle.match?(url)).to be true
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user