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 #185
  • Loading branch information
hsbt committed Jan 6, 2017
1 parent d093f67 commit 25f2e3b
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 @@ -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 = //
Expand Down

0 comments on commit 25f2e3b

Please sign in to comment.