测试actionview得到了耙子中止。如何避免耙子中止?

时间:2016-02-21 09:21:41

标签: ruby-on-rails rake-test

我看了Contributing to Ruby on Rails — Ruby on Rails Guides

关于测试 rails/rails at 4-2-stable: Ruby on Rails
(提交编号:e531c86e6bb0b623cd18c97a7a32ba981e8fb2ce)

在Mac上的rails/activerecord directory

% RUBYOPT=-W0 bundle exec rake test --trace

我得到了rake aborted!

rake aborted!
Command failed with status (1): [ruby -w -I"lib:test" -I"/Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0" "/Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb" "test/actionpack/abstract/abstract_controller_test.rb" "test/actionpack/abstract/helper_test.rb" "test/actionpack/abstract/layouts_test.rb" "test/actionpack/abstract/render_test.rb" "test/actionpack/controller/capture_test.rb" "test/actionpack/controller/layout_test.rb" "test/actionpack/controller/render_test.rb" "test/actionpack/controller/view_paths_test.rb" ]

如何避免耙子中止?

  

**调用测试(first_time)   **调用测试:模板(first_time)   **执行测试:template /Users/shingo/.rvm/rubies/ruby-2.2.3/bin/ruby -w -I" lib:test" -I" /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0" " /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb"   "测试/模板/ active_model_helper_test.rb"   "测试/模板/ asset_tag_helper_test.rb"   "测试/模板/ atom_feed_helper_test.rb"   "测试/模板/ capture_helper_test.rb"   "测试/模板/ compiled_templates_test.rb"   "测试/模板/ date_helper_i18n_test.rb"   "测试/模板/ date_helper_test.rb"   "测试/模板/ dependency_tracker_test.rb"   "测试/模板/ digestor_test.rb" "测试/模板/ ERB / form_for_test.rb"   "测试/模板/ ERB / tag_helper_test.rb"   "测试/模板/ erb_util_test.rb"   "测试/模板/ form_collections_helper_test.rb"   "测试/模板/ form_helper_test.rb"   "测试/模板/ form_options_helper_i18n_test.rb"   "测试/模板/ form_options_helper_test.rb"   "测试/模板/ form_tag_helper_test.rb" "测试/模板/ html_test.rb"   "测试/模板/ javascript_helper_test.rb"   "测试/模板/ log_subscriber_test.rb"   "测试/模板/ lookup_context_test.rb"   "测试/模板/ number_helper_test.rb"   "测试/模板/ output_safety_helper_test.rb"   "测试/模板/ partial_iteration_test.rb"   "测试/模板/ record_identifier_test.rb"   "测试/模板/ record_tag_helper_test.rb"   "测试/模板/ render_test.rb"   "测试/模板/ resolver_patterns_test.rb"   "测试/模板/ sanitize_helper_test.rb"   "测试/模板/ streaming_render_test.rb"   "测试/模板/ tag_helper_test.rb"   "测试/模板/ template_error_test.rb"   "测试/模板/ template_test.rb" "测试/模板/ test_case_test.rb"   "测试/模板/ test_test.rb"   "测试/模板/检测/ fixture_resolver_test.rb"   "测试/模板/检测/ null_resolver_test.rb"   "测试/模板/ text_helper_test.rb" "测试/模板/ text_test.rb"   "测试/模板/ translation_helper_test.rb"   "测试/模板/ url_helper_test.rb"运行选项: - seed 32409

     

运行:

     

............................................... .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .......小号.......................................... .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. .................................................. ...................

     

在11.824681s完成,132.4349次/秒,301.3189次断言/ s。

     

1566次运行,3563次断言,0次失败,0次错误,1次跳过

     

您已跳过测试。使用--verbose运行以获取详细信息。   **调用测试:集成:action_pack(first_time)   **执行测试:集成:action_pack /Users/shingo/.rvm/rubies/ruby-2.2.3/bin/ruby -w -I" lib:test"   -I" /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0" " /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb"   "测试/ ActionPack的/抽象/ abstract_controller_test.rb"   "测试/ ActionPack的/抽象/ helper_test.rb"   "测试/ ActionPack的/抽象/ layouts_test.rb"   "测试/ ActionPack的/抽象/ render_test.rb"   "测试/ ActionPack的/控制器/ capture_test.rb"   "测试/ ActionPack的/控制器/ layout_test.rb"   "测试/ ActionPack的/控制器/ render_test.rb"   "测试/ ActionPack的/控制器/ view_paths_test.rb"运行选项: - 选择   62868

     

运行:

     

............................................... .................................................. ..................F............................... .................................................. .......................

     

完成0.799071s,275.3197次/秒,384.1961断言/秒。

     

1)失败:   RenderTest#test_locals_option_to_assert_template_is_not_supported   [/Users/shingo/Documents/workout/rails/actionview/test/actionpack/controller/render_test.rb:1267]:   ---期待   +++ actual @@ -1,2 +1 @@    - " #assert_template的:locals选项仅在ActionView :: TestCase中受支持    - "   +""

     

220次运行,307次断言,1次失败,0次错误,0次跳过佣金中止!   命令失败,状态为(1):[ruby -w -I" lib:test"   -I" /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0" " /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb"   "测试/ ActionPack的/抽象/ abstract_controller_test.rb"   "测试/ ActionPack的/抽象/ helper_test.rb"   "测试/ ActionPack的/抽象/ layouts_test.rb"   "测试/ ActionPack的/抽象/ render_test.rb"   "测试/ ActionPack的/控制器/ capture_test.rb"   "测试/ ActionPack的/控制器/ layout_test.rb"   "测试/ ActionPack的/控制器/ render_test.rb"   "测试/ ActionPack的/控制器/ view_paths_test.rb" ]   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/testtask.rb:108:in   block (3 levels) in define' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/file_utils.rb:57:in 呼叫'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/file_utils.rb:57:in   sh' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/file_utils_ext.rb:37:in SH'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/file_utils.rb:96:in   ruby' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/file_utils_ext.rb:37:in 红宝石'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/testtask.rb:104:in   block (2 levels) in define' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/file_utils_ext.rb:58:in 冗长'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/testtask.rb:100:in   block in define' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in 呼叫'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in   block in execute' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in 各'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in   {* 1}}阻止invoke_with_call_chain'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in   execute' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:179:in invoke_with_call_chain'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:201:in   mon_synchronize' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in 各'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:199:in   {* 1}}阻止invoke_with_call_chain'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in   block in invoke_prerequisites' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:199:in invoke_with_call_chain'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:165:in   invoke_prerequisites' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:178:in invoke_task'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:106:in   mon_synchronize' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in 各'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:106:in   invoke' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:150:in run_with_threads'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:100:in   block (2 levels) in top_level' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:106:in 阻止运行'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:176:in   block in top_level' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:115:in 运行'   /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:33:in   top_level' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:78:in 负载' /Users/shingo/.rvm/gems/ruby-2.2.3/bin/rake:23:in standard_exception_handling' /Users/shingo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:75:in eval'   /Users/shingo/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in   `'任务:TOP => test =>测试:集成:action_pack

0 个答案:

没有答案