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.

Use assert_respond_to because it has better error messaging

#4628

If an assertion using assert_respond_to fails then it produces nice error message like this

  ActionMailer::Base
  of type Class
  expected to respond_to? :custom_settings.

compared to error message that is generated by assert.

false is not true.

Reported by Neeraj Singh · May 17th, 2010 @ 07:25 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Neeraj Singh
    Neeraj Singh
    • Tag changed from actionpack, rails3 to actionpack, patch, rails3

    Attached is a patch.

    May 17th, 2010 @ 07:43 PM

  2. Repository