Fixed unit tests and fixture loading for postgres. The foreign keys were playing havoc with the tests when only some fixtures were loaded.

This commit is contained in:
Matt Amos 2009-03-28 20:18:26 +00:00
parent be75a1504f
commit f492a1b709
26 changed files with 79 additions and 77 deletions

View file

@ -1,9 +1,9 @@
require File.dirname(__FILE__) + '/../test_helper'
class DiaryCommentTest < Test::Unit::TestCase
api_fixtures
fixtures :diary_comments
def test_diary_comment_count
assert_equal 1, DiaryComment.count
end