mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
17 lines
483 B
Ruby
17 lines
483 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "download_strategy"
|
|
|
|
describe GitHubGitDownloadStrategy do
|
|
subject(:strategy) { described_class.new(url, name, version) }
|
|
|
|
let(:name) { "brew" }
|
|
let(:url) { "https://github.com/homebrew/brew.git" }
|
|
let(:version) { nil }
|
|
|
|
it "parses the URL and sets the corresponding instance variables" do
|
|
expect(strategy.instance_variable_get(:@user)).to eq("homebrew")
|
|
expect(strategy.instance_variable_get(:@repo)).to eq("brew")
|
|
end
|
|
end
|