Skip to content

Commit ffa12ff

Browse files
committed
Fix a test issue under rails master branch
1 parent fb74b30 commit ffa12ff

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

test/dummy/config/environments/development.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,13 @@
5656
# Debug mode disables concatenation and preprocessing of assets.
5757
# This option may cause significant delays in view rendering with a large
5858
# number of complex assets.
59-
config.assets.debug = true
59+
60+
if Gem::Version.new(Rails.version) < Gem::Version.new("7.0.0.alpha2")
61+
config.assets.debug = true
6062

61-
# Suppress logger output for asset requests.
62-
config.assets.quiet = true
63+
# Suppress logger output for asset requests.
64+
config.assets.quiet = true
65+
end
6366

6467
# Raises error for missing translations.
6568
# config.i18n.raise_on_missing_translations = true

test/dummy/config/initializers/assets.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Be sure to restart your server when you modify this file.
22

33
# Version of your assets, change this if you want to expire all your assets.
4-
Rails.application.config.assets.version = '1.0'
4+
if Gem::Version.new(Rails.version) < Gem::Version.new("7.0.0.alpha2")
5+
Rails.application.config.assets.version = '1.0'
6+
end
57

68
# Add additional assets to the asset load path.
79
# Rails.application.config.assets.paths << Emoji.images_path

0 commit comments

Comments
 (0)