Mon Oct 15 04:02:00 UTC 2007
assert_hangs
another thing that rails needs for testing transactions and how large your alpha geek ego is:
assert_hung @me.hung_like_horse
....
but seriously.
how do you know that code such as
def some_controller
@profile.save
@user.profile = @profile
@user.save
end
is all being done without interruption from some process like FERRET dying without an error??
what if you could do…
hangs_after(profile_save)
assert_hung_after(profile_save)
or something of the sort to test the atomicity of your controller ?
def some_controller
transaction.do
@profile.save
@user.profile = @profile
@user.save
end
end

Leave a Comment