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_equal should be used instead of assert

#4629

In the following test assert_equal should be used.

  def test_module_spanning_has_and_belongs_to_many_associations
    project = MyApplication::Business::Project.find(:first)
    project.developers << MyApplication::Business::Developer.create("name" => "John")
    assert "John", project.developers.last.name
  end

Patch will be attached through comment.

Reported by Neeraj Singh · May 17th, 2010 @ 09:23 PM

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

Activity

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

    Attached is patch against rails3 edge.

    May 17th, 2010 @ 09:26 PM

  2. Repository