Skip to content

Commit 51b4980

Browse files
committed
Fix nokogiri on Ruby 2.7
1 parent 2380451 commit 51b4980

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/support/application_generator.rb

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def generate_files
5353
FileUtils.rm_rf(application.path("test/performance"))
5454

5555
append_to_file(application.gemfile, "gem 'spring', '#{Spring::VERSION}'")
56+
if RUBY_VERSION < "3.0"
57+
append_to_file(application.gemfile, "gem 'nokogiri', '< 1.16'")
58+
end
5659

5760
append_to_file(application.path("config/boot.rb"), "raise 'BOOM' if ENV['CRASH_ON_BOOT']")
5861

0 commit comments

Comments
 (0)