【问题标题】:Not able to run rspec with Sequel无法使用 Sequel 运行 rspec
【发布时间】:2015-06-09 14:10:49
【问题描述】:

我正在使用“rspec_sequel_matchers”gem,并按照文档中提到的步骤进行操作。但是当我运行 rspec 时,它会显示“未初始化的常量 RspecSequel (NameError)”。 非常感谢您的帮助。

【问题讨论】:

  • 发布测试代码。

标签: ruby ruby-on-rails-4 rspec sequel


【解决方案1】:

我移动了代码:

RSpec.configure do |config|
    config.include RspecSequel::Matchers
    #...other config..
end

从 spec_helper.rb 到 rails_helper.rb

现在可以了。

【讨论】:

    猜你喜欢
    • 2012-04-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-28
    • 1970-01-01
    • 2012-09-27
    • 1970-01-01
    • 2021-09-25
    相关资源
    最近更新 更多