ignore remote_repo refs in tests

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2024-09-25 10:00:53 -04:00
parent b178a80220
commit 874fdaaa42
No known key found for this signature in database
GPG Key ID: 6577287BDCA70840
2 changed files with 6 additions and 6 deletions

View File

@ -50,16 +50,16 @@ RSpec.describe GitDownloadStrategy do
end
describe "#fetch_last_commit" do
let(:url) { "file://#{remote_repository}" }
let(:url) { "file://#{remote_repo}" }
let(:version) { Version.new("HEAD") }
let(:remote_repository) { HOMEBREW_PREFIX/"remote_repository" }
let(:remote_repo) { HOMEBREW_PREFIX/"remote_repo" }
before { remote_repository.mkpath }
before { remote_repo.mkpath }
after { FileUtils.rm_rf remote_repository }
after { FileUtils.rm_rf remote_repo }
it "fetches the hash of the last commit" do
remote_repository.cd do
remote_repo.cd do
setup_git_repo
FileUtils.touch "LICENSE"
git_commit_all

View File

@ -234,7 +234,7 @@ RSpec.describe Tap do
end
end
describe "#remote_repository" do
describe "#remote_repo" do
it "returns the remote https repository" do
setup_git_repo