Skip to content

Commit

Permalink
Temporarily rename the .ruby-version file to pass CI for rubocop-old
Browse files Browse the repository at this point in the history
Old versions of rubocop read the ruby version from .ruby-version first.
We made the change upstream which is not captured in versions of
rubocop (< 0.87).

Upstream commit: rubocop/rubocop@02b2c3a
  • Loading branch information
george-ma committed Mar 18, 2024
1 parent 5a416e0 commit eb5c275
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/erb_lint/linters/rubocop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
)
end
before { linter.run(processed_source) }
before(:all) { File.rename(".ruby-version", ".ruby-version.bak") }
after(:all) { File.rename(".ruby-version.bak", ".ruby-version") }

context "config is valid when rubocop_config is not explicitly provided" do
let(:linter_config) do
Expand Down

0 comments on commit eb5c275

Please sign in to comment.