Skip to content

Commit 25f2e3b

Browse files
committed
Removed duplicated test.
`test_display_exception_details_cause_loop` is same as `test_display_exception_details_cause`. Fixed #185
1 parent d093f67 commit 25f2e3b

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

test/test_rake_application.rb

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -72,33 +72,6 @@ def test_display_exception_details_cause
7272
assert_match "cause b", err
7373
end
7474

75-
def test_display_exception_details_cause_loop
76-
skip "Exception#cause not implemented" unless
77-
Exception.method_defined? :cause
78-
skip if jruby9? # https://github.com/jruby/jruby/issues/3654
79-
80-
begin
81-
begin
82-
raise "cause a"
83-
rescue => a
84-
begin
85-
raise "cause b"
86-
rescue
87-
raise a
88-
end
89-
end
90-
rescue => ex
91-
end
92-
93-
out, err = capture_io do
94-
@app.display_error_message ex
95-
end
96-
97-
assert_empty out
98-
99-
assert_match "cause a", err
100-
end
101-
10275
def test_display_tasks
10376
@app.options.show_tasks = :tasks
10477
@app.options.show_task_pattern = //

0 commit comments

Comments
 (0)