小编Cor*_*son的帖子

使用 Stimulus.js 自动加载弃用警告后 Rspec 导轨挂起

在尝试使用 Stimulus.js 在 rails 6.1.0 中运行 RSpec 测试时,我遇到了一个问题,即我从终端获得的唯一输出

EPRECATION WARNING: Initialization autoloaded the constants ApplicationHelper, DashboardHelper, WelcomeHelper, FontAwesome5, FontAwesome5::Rails, FontAwesome5::Rails::IconHelper, Stimulus::StimulusHelper, DeviseHelper, ApplicationController, ActionText::ContentHelper, and ActionText::TagHelper.

Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails.

Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload ApplicationHelper, for example,
the expected changes won't be reflected in that stale …
Run Code Online (Sandbox Code Playgroud)

rspec ruby-on-rails stimulusjs

5
推荐指数
1
解决办法
359
查看次数

标签 统计

rspec ×1

ruby-on-rails ×1

stimulusjs ×1