簡體   English   中英

在Ruby + Rails中運行RSPEC

[英]Running RSPEC in Ruby + Rails

我試圖使用spec命令在我的rails應用程序中運行rspec但是我收到以下錯誤:

`require': cannot load such file -- spec/rails/example/helper_example_group_helper (LoadError)

我已經不得不處理丟失的'幫助'文件,但似乎這個甚至不在我的應用程序中但在rails本身..如果我繼續創建一個helper_example_group_helper.rb文件,那么錯誤將出現在其他一些Rails中缺少幫助文件,無限制。

完整的日志跟蹤: http//pastie.org/pastes/3295692/text

完整的寶石列表: http//pastie.org/pastes/3296070/text

我在跑步:

  • Ruby 1.9.3-p0

  • Rails 2.3.14

  • rspec 1.2.9(寶石)

  • rspec-rails 1.2.9(寶石)

任何幫助將不勝感激!

謝謝

一個老問題,但這是我最近在升級rails應用程序時遇到的問題。 此問題特定於Rails 2.3.x和ruby 1.9.3。 這里有一個關於它的谷歌小組主題: https//groups.google.com/forum/#!msg /rubyonrails-core / gb5woRkmDlk / iQ2G7jjNWKkJ%5B1-25%5D

解決方法是使用以下內容向config/initializers添加文件:

MissingSourceFile::REGEXPS.push([/^cannot load such file -- (.+)$/i, 1])

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM