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

Co-authored-by: Étienne Barrié <etienne.barrie@shopify.com>
  • Loading branch information
george-ma and etiennebarrie committed Mar 18, 2024
1 parent 5a416e0 commit a2bd80c
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
@@ -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

0 comments on commit a2bd80c

Please sign in to comment.