我运行佣金测试:单位 一切都运行正常,但一旦我在测试场景中添加了assert false。我发现了很长的错误(下面复制)。有没有办法摆脱这个错误?
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib" "/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/rake_test_loader.rb" "test/unit/**/*_test.rb" ]
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/testtask.rb:104:in `block (3 levels) in define'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/file_utils.rb:82:in `ruby'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/testtask.rb:100:in `block (2 levels) in define'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:58:in `verbose'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/testtask.rb:98:in `block in define'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/Users/me/.rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/Users/me/.rvm/gems/ruby-1.9.3-p194/bin/rake:19:in `load'
/Users/me/.rvm/gems/ruby-1.9.3-p194/bin/rake:19:in `<main>'
Tasks: TOP => test:units