, ben bir mesaj bu hale:RSpec 2'de bir test hatası için backtrace'i nasıl kısaltabilirim? Benim gözlük bir hata vurduğunda
Vendor should reject duplicate names
Failure/Error: user_with_duplicate_email.should_not be_valid
expected valid? to return false, got true
# /home/kevin/.rvm/gems/[email protected]/gems/rspec-expectations-2.3.0/lib/rspec/expectations/fail_with.rb:29:in `fail_with'
# /home/kevin/.rvm/gems/[email protected]/gems/rspec-expectations-2.3.0/lib/rspec/expectations/handler.rb:44:in `handle_matcher'
# /home/kevin/.rvm/gems/[email protected]/gems/rspec-expectations-2.3.0/lib/rspec/expectations/extensions/kernel.rb:50:in `should_not'
.
.
about 15 more lines
.
.
# /home/kevin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/drb/drb.rb:1592:in `block (2 levels) in main_loop'
# /home/kevin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/drb/drb.rb:1588:in `loop'
# /home/kevin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/drb/drb.rb:1588:in `block in main_loop'
Ruby 1.0.2 koşuyorum, raylar (3.0.3) ve RSpec (2.3.0). M .rspec yapılandırma dosyası belirtilen yalnızca iki seçenek vardır:
--drb --colour
nasıl genişletilmiş iz kapatabilirim? spec_helper.rb
yılında
RSpec 3'te denendi, mükemmel çalışıyor. – Kris