Skip to content

Commit cf0eb8d

Browse files
committed
Adjust the spec setup to accommodate Rails 7.2
1 parent 4519490 commit cf0eb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example_app_generator/spec/support/default_preview_path

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ exit(0) if ENV['NO_ACTION_MAILER']
6969
if ENV['DEFAULT_URL']
7070
puts ActionMailer::Base.default_url_options[:host]
7171
elsif defined?(::ActionMailer::Preview)
72-
if Rails::VERSION::STRING.start_with?('7.1')
72+
if Rails::VERSION::STRING.to_f >= 7.1
7373
puts Rails.application.config.action_mailer.preview_paths
7474
else
7575
puts Rails.application.config.action_mailer.preview_path

0 commit comments

Comments
 (0)