From 25f2e3bc37c90515564498fbc6511e736053075d Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Fri, 6 Jan 2017 12:54:11 +0900 Subject: [PATCH] Removed duplicated test. `test_display_exception_details_cause_loop` is same as `test_display_exception_details_cause`. Fixed #185 --- test/test_rake_application.rb | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/test/test_rake_application.rb b/test/test_rake_application.rb index cb3a86c07..cd8feebbc 100644 --- a/test/test_rake_application.rb +++ b/test/test_rake_application.rb @@ -72,33 +72,6 @@ def test_display_exception_details_cause assert_match "cause b", err end - def test_display_exception_details_cause_loop - skip "Exception#cause not implemented" unless - Exception.method_defined? :cause - skip if jruby9? # https://github.com/jruby/jruby/issues/3654 - - begin - begin - raise "cause a" - rescue => a - begin - raise "cause b" - rescue - raise a - end - end - rescue => ex - end - - out, err = capture_io do - @app.display_error_message ex - end - - assert_empty out - - assert_match "cause a", err - end - def test_display_tasks @app.options.show_tasks = :tasks @app.options.show_task_pattern = //