我设置了一个rails项目,我不能让rspec在rubymine中运行。这是我的测试宝石:
group :development, :test do
gem 'rspec-rails'
gem 'shoulda-matchers'
gem 'factory_girl_rails', require: false
end
group :test do
gem 'faker'
end
这是我的错误消息
/Users/dude/.rvm/rubies/ruby-2.1.2/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/dude/.rvm/gems/ruby-2.1.2@myproject/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide --disable-int-handler --port 53125 --dispatcher-port 53126 -- /Users/dude/.rvm/gems/ruby-2.1.2@myproject/bin/rspec /Users/dude/Code/myproject/spec/models/instagram_user_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example InstagramUser --require /Applications/RubyMine.app/rb/testing/patch/bdd/teamcity/spec/runner/formatter/teamcity/rspec3_formatter.rb
Testing started at 9:03 PM ...
Fast Debugger (ruby-debug-ide 0.4.23.beta1, debase 0.0.9) listens on 127.0.0.1:53125
Uncaught exception: cannot load such file -- teamcity/spec/runner/formatter/teamcity/formatter
/Users/dude/.rvm/gems/ruby-2.1.2@myproject/gems/rspec-core-3.0.4/lib/rspec/core/configuration.rb:1025:in `require'
.......
Process finished with exit code 0
答案 0 :(得分:0)
我重新安装了rubymine,现在内置的rspec调试器工作正常。