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,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue