search for: joined_on

Displaying 1 result from an estimated 1 matches for "joined_on".

Did you mean: join_on
2005 Mar 13
1
Semantics of push_with_attributes
...a record twice to the list of associations with push with attributes, should the following test succeed or not? def test_pushing_twice dev = Devel.new("name"=>"victor") p = Project.new("name"=>"whatever") dev.projects.push_with_attributes(p, :joined_on => Date.today) dev.projects.push_with_attributes(p, :joined_on => Date.today) assert_equal(1,dev.projects.size) end That is, should the record be added twice, or else updated with new info? And for that matter, should the normal push (or <<) method add twice if repeated as well...