Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Explicitly load asset paths for tests
Dieser Commit ist enthalten in:
Ursprung
a053440466
Commit
466c7a7a49
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
|
@ -23,6 +23,13 @@ if Rails.env.production?
|
|||
}
|
||||
end
|
||||
|
||||
if Rails.env.test?
|
||||
config = Rails.application.config
|
||||
plugin_asset_path = "#{Rails.root}/plugins/discourse-custom-wizard/assets"
|
||||
config.assets.paths << "#{plugin_asset_path}/javascripts"
|
||||
config.assets.paths << "#{plugin_asset_path}/stylesheets/wizard"
|
||||
end
|
||||
|
||||
if respond_to?(:register_svg_icon)
|
||||
register_svg_icon "far-calendar"
|
||||
register_svg_icon "chevron-right"
|
||||
|
|
Laden …
In neuem Issue referenzieren