Skip to content

Commit

Permalink
Disable Bazaar tests due to macOS 12.3 not including python2
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkoutso committed Apr 1, 2022
1 parent 52a0d54 commit f75bccc
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions spec/bazaar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,30 @@ module Downloader
tmp_folder.rmtree if tmp_folder.exist?
end

it 'checks out a specific revision' do
# Many tests disabled here due to macOS 12.3 no longer including python2.

xit 'checks out a specific revision' do
options = { :bzr => fixture('bazaar-repo'), :revision => '1' }
downloader = Downloader.for_target(tmp_folder, options)
downloader.download
tmp_folder('README').read.strip.should == 'First Commit'
end

it 'checks out a specific tag as a revision' do
xit 'checks out a specific tag as a revision' do
options = { :bzr => fixture('bazaar-repo'), :revision => 'my_tag' }
downloader = Downloader.for_target(tmp_folder, options)
downloader.download
tmp_folder('README').read.strip.should == 'Second Commit'
end

it 'checks out a specific tag as a tag' do
xit 'checks out a specific tag as a tag' do
options = { :bzr => fixture('bazaar-repo'), :tag => 'my_other_tag' }
downloader = Downloader.for_target(tmp_folder, options)
downloader.download
tmp_folder('README').read.strip.should == 'Third Commit'
end

it 'checks out the head revision' do
xit 'checks out the head revision' do
options = { :bzr => fixture('bazaar-repo') }
downloader = Downloader.for_target(tmp_folder, options)
downloader.download
Expand All @@ -42,22 +44,22 @@ module Downloader
end

describe 'when the directory name has quotes or spaces' do
it 'checks out the head revision' do
xit 'checks out the head revision' do
options = { :bzr => fixture('bazaar-repo') }
downloader = Downloader.for_target(tmp_folder_with_quotes, options)
downloader.download
tmp_folder_with_quotes('README').read.strip.should == 'Fourth Commit'
end

it 'checks out a specific revision into a directory with quotes' do
xit 'checks out a specific revision into a directory with quotes' do
options = { :bzr => fixture('bazaar-repo'), :revision => '1' }
downloader = Downloader.for_target(tmp_folder_with_quotes, options)
downloader.download
tmp_folder_with_quotes('README').read.strip.should == 'First Commit'
end
end

it 'returns the checked out revision' do
xit 'returns the checked out revision' do
options = { :bzr => fixture('bazaar-repo') }
downloader = Downloader.for_target(tmp_folder, options)
downloader.download
Expand Down

0 comments on commit f75bccc

Please sign in to comment.