This project is archived and is in readonly mode.

#4629 ✓resolved
Neeraj Singh

assert_equal should be used instead of assert

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

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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Referenced by

Pages