]> git.openstreetmap.org Git - rails.git/commit
Create new diary entry records instead of cloning the fixture
authorTom Hughes <tom@compton.nu>
Wed, 28 Sep 2011 17:25:27 +0000 (18:25 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:52 +0000 (09:42 +0000)
commit44a9a65aa74cd927bfa3abd3b53569500842b489
tree0400a8b1f295d3a8e8c1b95b079561df93d776aa
parent97b1290f1a9f784566cc352e744dc2d009ae49ce
Create new diary entry records instead of cloning the fixture

Cloning fixtures doesn't seem to do a deep copy in rails 3.1 so the
attribute changes persist into other future cloned copies of the same
fixture. The fix is to create completely new records for each test.
test/unit/diary_entry_test.rb