A fork of Phlip’s assert2 (assert2.rubyforge.org) with bug fixes and merged assert_latest

assert { foo == 42 }

# For Rails or anything responding to .maximum and .find assert_latest Account, User do

 = Account.create(:name => 'Foo Mart')
.users.create(:login => 'foo-guy')

end

# You can grab the created records thusly: account, user = assert_latest Account, User do

 = Account.create(:name => 'Foo Mart')
.users.create(:login => 'foo-guy')

end