Rspec-rails到很多输出

时间:2015-09-09 01:49:31

标签: ruby-on-rails ruby ruby-on-rails-4 rspec

rails 4.2.4 rspec 3.3.3

.rspec:

--color

在foo_spec.rb中:

require 'rails_helper'

输出:

 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_dispatch/journey/formatter.rb:46:in `generate'
 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:729:in `generate'
 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:760:in `generate'
 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:755:in `generate_extras'
 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:750:in `extra_keys'
 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_controller/test_case.rb:208:in `assign_parameters'
 # /home/ruslan/.rvm/gems/ruby-2.2.2@qna/gems/actionpack-4.2.4/lib/action_controlle...

如何禁用此行(#... /。rvm /...)?

1 个答案:

答案 0 :(得分:0)

你实际上无法禁用它们,但你可以在输出中db.collection.update( <query>, <update>, { upsert: <boolean>, multi: <boolean>, writeConcern: <document> } ) db.collectionName.update({<field>:<value>},{$set:{<field>:<New Value>}},<upsert>,<multi>); 输出它们,如下所示:

grep