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:
parent
be75a1504f
commit
f492a1b709
26 changed files with 79 additions and 77 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue