【问题标题】:Putting require 'spec_helper' results in Bad URI error放置 require 'spec_helper' 会导致 Bad URI 错误
【发布时间】:2015-04-09 21:26:06
【问题描述】:

我做了 rails generate rspec:install, 运行 rake spec,它工作得很好。

但是,当我创建一个新的规范文件并添加 require 'spec_helper' 时,我收到以下错误。

rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/uri/common.rb:176:in `split': bad URI(is not URI?):  (URI::InvalidURIError)

有人知道可能是什么问题吗?

编辑:另外,当我运行 rake db:schema:load RAILS_ENV=test 我得到 ​​p>

URI::InvalidURIError: bad URI(is not URI?):

也许,这与 Raven for Sentry 有关?

【问题讨论】:

    标签: ruby-on-rails-3 rspec


    【解决方案1】:

    Raven 依赖导致了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-21
      • 2016-05-06
      • 2012-04-25
      • 1970-01-01
      • 2013-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多