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,8 +1,7 @@
require File.dirname(__FILE__) + '/../test_helper'
class TraceTest < Test::Unit::TestCase
fixtures :gpx_files
set_fixture_class :gpx_files => Trace
api_fixtures
def test_trace_count
assert_equal 1, Trace.count