ruby 未初始化的常量RSpec::Matchers::Composable

bqjvbblv  于 9个月前  发布在  Ruby
关注(0)|答案(1)|浏览(92)

我有一个问题,运行测试用例后,加载这么多的东西说<class:Matcher>': uninitialized constant RSpec::Matchers::Composable (NameError)。请帮助!
先谢谢你了!

w3nuxt5m

w3nuxt5m1#

我在我的Rails应用程序测试用例中也遇到了同样的问题。我是如何解决的。

follow below two steps:

 1.  first mark the gem as required false  as below
  group 'test' do
     gem 'rspec-sidekiq', require: false
  end
 2. require the gem in rails_helper.rb file as below
     require 'rspec-sidekiq'

字符串
现在问题就解决了

相关问题