k: 'test'
v: 'yes'
-t2:
+t3:
id: 3
k: 'test'
v: 'yes'
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class NodeTagTest < Test::Unit::TestCase
+ fixtures :current_node_tags
+ set_fixture_class :current_node_tags => NodeTag
+
+ def test_node_tag_count
+ assert_equal 6, NodeTag.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class RelationMemberTest < Test::Unit::TestCase
+ fixtures :current_relation_members
+ set_fixture_class :current_relation_members => RelationMember
+
+ def test_relation_member_count
+ assert_equal 5, RelationMember.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class RelationTagTest < Test::Unit::TestCase
+ fixtures :current_relation_tags
+ set_fixture_class :current_relation_tags => RelationTag
+
+ def test_relation_tag_count
+ assert_equal 3, RelationTag.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class RelationTest < Test::Unit::TestCase
+ fixtures :current_relations
+ set_fixture_class :current_relations => Relation
+
+ def test_relation_count
+ assert_equal 3, Relation.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class TraceTest < Test::Unit::TestCase
+ fixtures :gpx_files
+ set_fixture_class :gpx_files => Trace
+
+ def test_trace_count
+ assert_equal 1, Trace.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class TracepointTest < Test::Unit::TestCase
+ fixtures :gps_points
+ set_fixture_class :gps_points => Tracepoint
+
+ def test_tracepoint_count
+ assert_equal 1, Tracepoint.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class TracetagTest < Test::Unit::TestCase
+ fixtures :gpx_file_tags
+ set_fixture_class :gpx_file_tags => Tracetag
+
+ def test_tracetag_count
+ assert_equal 1, Tracetag.count
+ end
+
+end
--- /dev/null
+require File.dirname(__FILE__) + '/../test_helper'
+
+class UserTokenTest < Test::Unit::TestCase
+ fixtures :users
+
+ def test_user_token_count
+ assert_equal 0, UserToken.count
+ end
+
+end