Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

assert_valid is deprecated in unit tests but not in functional tests

#3159

http://github.com/rails/rails/commit/d4754677a34d34d4a0955a04f2cc65... says that assert_valid is deprecated but it is still usable in functional tests (as of 2.3.3) which makes no sense.
Is it going to be removed or kept?

Reported by Kostas K. · September 7th, 2009 @ 03:39 PM

State: invalid
Milestone: none
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. David Trasbo
    David Trasbo
    • Assigned user set to Ryan Bigg

    To "deprecate" means to schedule a piece of functionality for removal in a future version and issue a warning when its used to make people aware that they will not be able to use it sooner or later.

    assert_valid does not exist in ActiveSupport::TestCase but it's scheduled to be removed from ActionController::TestCase. This ticket can be marked as invalid.

    April 15th, 2010 @ 11:47 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

    David's right, they'll still be available but should be raising deprecation warnings.

    April 15th, 2010 @ 12:46 PM