Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10568 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

'setup' methods fails on subclassing

Reported by: leethal Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveRecord Version: edge
Severity: normal Keywords:
Cc:

Description

Changeset #8392 had a side effect of not running the 'setup' method of subclassed tests. The setup of a subclassed test simply doesn't get called at all when the test runs. Failing test attached (thanks, brynary ;D)

Attachments

testing_that_subclassing_perserves_setups.diff (0.6 kB) - added by leethal on 12/19/07 20:13:13.
This test fails.
failing_test_for_subclass_setups.diff (0.7 kB) - added by brynary on 12/19/07 20:33:51.

Change History

12/19/07 20:13:13 changed by leethal

  • attachment testing_that_subclassing_perserves_setups.diff added.

This test fails.

12/19/07 20:33:51 changed by brynary

  • attachment failing_test_for_subclass_setups.diff added.

12/19/07 21:16:31 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [8442]) Revert [8392]. Closes #10568, reopens #10379.