No seguinte livro:
http://manuals.rubyonrails.com/read/chapter/27#page70class SecretAgent < Test::Unit::TestCase
fixtures :secret_agents
# ensure the SecretAgent plays well with the database
def test_create_read_update_delete
jimmy = SecretAgent.new("jagent", "unbelievablysecretpassword")
assert jimmy.save
agent = SecretAgent.find(jimmy.id)
assert_equal jimmy.username, agent.username
Isto pode ser chamado de teste unitário, mesmo testando também o banco de dados?