Skip to content

Commit

Permalink
Remove an extra assertion
Browse files Browse the repository at this point in the history
As the result of https://bugs.ruby-lang.org/issues/13043, now
Exception#cause should not have a loop.

In the example jimweirich#272, the
code doesn't seem to intend the loop itself but just re-raising
the first exception instead of the next exception.  Therefore I
consider the last assertion superfluous.
  • Loading branch information
nobu committed Jan 4, 2017
1 parent 34a2353 commit e65f3db
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion test/test_rake_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def test_display_exception_details_cause_loop
assert_empty out

assert_match "cause a", err
assert_match "cause b", err
end

def test_display_tasks
Expand Down

0 comments on commit e65f3db

Please sign in to comment.