我刚刚开始学习在我的rails应用程序上使用RSpec.
这一切似乎都可以正常工作,但是当我运行rspec规范时,我会得到我认为是lint消息的页面和页面.
这一切似乎都可以正常工作,但是当我运行rspec规范时,我会得到我认为是lint消息的页面和页面.
我不介意那些引用我的代码,但很多都是指我正在使用的宝石.
我无法真正解决这些问题.
如何配置RSpec仅对我的代码应用lint,而不是外部Gems?
这是一个小样本.我得到超过2000行这个东西.
/Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/gems/sorcery-0.8.5/lib/sorcery/model.rb:265: warning: method redefined; discarding old username_attribute_names= /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251: warning: loading in progress,circular require considered harmful - /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/gems/sorcery-0.8.5/lib/sorcery.rb from /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>' from /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval' from /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/bin/rspec:23:in `<main>' from /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/bin/rspec:23:in `load' from /Users/jcreasey/.rvm/gems/ruby-2.0.0-p0/gems/rspec-core-3.0.0/exe/rspec:4:in `<top (required)>' from /Users/jcreasey
这是我的.rspec文件
-color --warnings --require spec_helper