This project is archived and is in readonly mode.
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
-
Neeraj Singh May 17th, 2010 @ 09:26 PM
- Tag changed from activerecord, rails3 to activerecord, patch, rails3
Attached is patch against rails3 edge.
-
Repository May 18th, 2010 @ 03:13 PM
- State changed from new to resolved
(from [ce20b93606195eff1ea2dfeb2aa311130dd9977e]) assert_equal should be used instead of assert
[#4629 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/ce20b93606195eff1ea2dfeb2aa311...
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
Tags
Referenced by
- 4629 assert_equal should be used instead of assert [#4629 state:resolved]