Skip to content

Commit

Permalink
Merge pull request #139 from CocoaPods/amorde/specs-macos
Browse files Browse the repository at this point in the history
Update specs to run on macOS 12
  • Loading branch information
amorde authored Oct 15, 2023
2 parents e9ab295 + e84cb5e commit d9844ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-10.15]
os: [macos-12]
ruby: [2.7, 3.0.0]

name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
Expand Down
7 changes: 7 additions & 0 deletions spec/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ def fixture_url(name)
FileUtils.cp_r(fixture('git-submodule-repo'), '/tmp/')
options = { :git => fixture('git-repo'), :commit => 'd7f4104', :submodules => true }
downloader = Downloader.for_target(tmp_folder, options)
downloader.instance_exec do
# Explicitly allow file transport as newer Git versions
# disable it by default
def target_git(*args)
super('-c', 'protocol.file.allow=always', *args)
end
end
downloader.download
tmp_folder('README').read.strip.should == 'added submodule'
tmp_folder('submodule/README').read.strip.should == 'submodule'
Expand Down

0 comments on commit d9844ca

Please sign in to comment.