如何解决无法为关注ActiveSupport :: Concern :: MultipleIncludedBlocks最小测试错误定义多个“包含”块
在运行最小测试时,出现此错误..
无法为关注定义多个“包含”块 (ActiveSupport :: Concern :: MultipleIncludedBlocks)
这是我正在使用的命令
RAILS_ENV=test bundle exec ruby test/api/functional/f1/file_1.rb
Rails -v gives Rails 4.2.11.3
Ruby -v gives ruby 2.4.7p357 (2019-08-28 revision 67796) [x86_64-darwin19]
rvm -v gives rvm 1.29.9
require_relative '../../test_helper'
# require Rails.root.join('test','core','helpers','controller_test_helper.rb')
# require Rails.root.join('test','users_test_helper.rb')
Dir.glob("#{Rails.root}/test/core/helpers/*_helper.rb") { |file| require file }
class ABC::EFG < ActionController::TestCase
# tests Freshrelease::SettingsController
include FreshreleaseConfig
include UsersTestHelper
include ControllerTestHelper
def setup
super
before_all
end
请帮助。 PS之前成功运行了
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。