Skip to content

Commit

Permalink
Removed duplicated test.
Browse files Browse the repository at this point in the history
`test_display_exception_details_cause_loop` is same as
`test_display_exception_details_cause`.

Fixed ruby#185
  • Loading branch information
hsbt authored and kratob committed Mar 16, 2022
1 parent e4a0a41 commit 46d88af
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions test/test_rake_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,33 +57,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

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
assert_match 'cause b', err
end

def test_display_tasks
@app.options.show_tasks = :tasks
@app.options.show_task_pattern = //
Expand Down

0 comments on commit 46d88af

Please sign in to comment.