Skip to content

Commit

Permalink
Merge pull request rubocop#10955 from koic/fix_a_flaky_test_of_format…
Browse files Browse the repository at this point in the history
…ter_set_spec

Workaround for a build error of formatter_set_spec.rb  in the windows mingw CI matrix
  • Loading branch information
koic committed Aug 25, 2022
2 parents e2c1298 + b700baa commit bd42ff6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/rubocop/formatter/formatter_set_spec.rb
Expand Up @@ -60,6 +60,9 @@
after { FileUtils.rm_rf(tmpdir) }

it 'creates them' do
# FIXME: Skips this spec to prevent `Errno::EACCES` error in mingw CI matrix.
skip if ENV['GITHUB_JOB'] == 'main' && ENV['MSYSTEM'] == 'MINGW64'

output_path = File.join(tmpdir, 'path/does/not/exist')
formatter_set.add_formatter('simple', output_path)
expect(formatter_set.first.output.class).to eq(File)
Expand Down

0 comments on commit bd42ff6

Please sign in to comment.