简体   繁体   English

Rubymine和运行rspec“rspec-core不是捆绑的一部分”

[英]Rubymine and running rspec “rspec-core is not part of the bundle”

I am trying to run a rails app which was not created using rubymine. 我正在尝试运行一个不使用rubymine创建的rails应用程序。 Its is a very different sort of app using rails engines loaded...When I try running tests, I get the following error message 它是一个非常不同的应用程序使用rails引擎加载...当我尝试运行测试时,我收到以下错误消息

Testing started at 12:29 ...
/Users/userbnamexxxx/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `block in replace_gem': rspec-core is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
    from /Users/userbnamexxxx/.rbenv/versions/1.9.3-p327/bin/rspec:22:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

I edited the configuration and it does have bundle exec checkbox checked. 我编辑了配置,它确实选中了bundle exec复选框。 Tests tuns fine in the console. 测试控制台中的测试很好。 I tried it another project which is a default bug standard rails app and its fine there... I am using rbenv for managing ruby versions.... Please help as I am really stuck and it would be nice to not use the terminal.... 我尝试了另一个项目,这是一个默认的错误标准rails应用程序,它在那里很好...我使用rbenv管理ruby版本....请帮助,因为我真的卡住了,不使用终端将是很好的。 ...

Add the gem 添加宝石

rspec-core rspec的核心

into your .Gemfile 进入你的.Gem文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM