Skip to content

Commit a2bd80c

Browse files
Temporarily rename the .ruby-version file to pass CI for rubocop-old
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é <[email protected]>
1 parent 5a416e0 commit a2bd80c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/erb_lint/linters/rubocop_spec.rb

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
)
3131
end
3232
before { linter.run(processed_source) }
33+
before(:all) { File.rename(".ruby-version", ".ruby-version.bak") }
34+
after(:all) { File.rename(".ruby-version.bak", ".ruby-version") }
3335

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

0 commit comments

Comments
 (0)