【问题标题】:Unable to activate rspec-2.12.0, because rspec-core-2.13.1 conflicts with rspec-core (~> 2.12.0)无法激活 rspec-2.12.0,因为 rspec-core-2.13.1 与 rspec-core (~> 2.12.0) 冲突
【发布时间】:2013-03-30 16:22:41
【问题描述】:

当我尝试执行 rspec rspec_001.rb 时,我收到上述错误

如何绕过错误并运行测试?

rspec_001.rb的内容:

require 'rspec'

class Dummy < Object
end

describe "a test" do
end

我似乎无法使用 bundle exec rspec rspec_001.rb,因为这不是带有 Gemfile 的 Rails 项目。

【问题讨论】:

    标签: ruby testing rspec


    【解决方案1】:

    gem update rspec 修复了这个问题,现在规范运行(“没有找到示例。”没关系,没有任何示例)-

    rspec rspec_001.rb
    No examples found.
    
    Finished in 0.00011 seconds
    0 examples, 0 failures
    

    【讨论】:

      猜你喜欢
      • 2014-08-30
      • 1970-01-01
      • 1970-01-01
      • 2012-02-02
      • 2018-03-06
      • 2017-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多