Skip to content

Commit 1856702

Browse files
committed
Fix test failures
1 parent 4d9dd0d commit 1856702

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

spec/app/rails_6.1/config/boot.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
require "bundler/setup" # Set up gems listed in the Gemfile.
44
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
5+
require "logger" # Fix for Ruby 3.3 compatibility with ActiveSupport 6.1.7.10

spec/app/rails_7.0/config/boot.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
require "bundler/setup" # Set up gems listed in the Gemfile.
44
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
5+
require "logger" # Fix for Ruby 3.3 compatibility with ActiveSupport 6.1.7.10

spec/config_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
File.write(default_settings_file_name, "default: default_value")
187187
File.write(custom_settings_file_name, "custom: custom_value")
188188
# workaround for Rails 6.1
189-
File.write(spring_file_name_for_rails_6_1, "") if Rails.version == "6.1.7.6"
189+
File.write(spring_file_name_for_rails_6_1, "") if Rails.version.start_with?("6.1")
190190
end
191191

192192
after do

0 commit comments

Comments
 (0)