Douglas Eichelberger 9075cbae62 brew style --fix
2023-04-21 09:58:50 -07:00

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