]> git.openstreetmap.org Git - rails.git/commitdiff
More unit test stubs
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 14 Nov 2008 17:28:16 +0000 (17:28 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Fri, 14 Nov 2008 17:28:16 +0000 (17:28 +0000)
test/fixtures/current_relation_tags.yml
test/unit/node_tag_test.rb [new file with mode: 0644]
test/unit/relation_member_test.rb [new file with mode: 0644]
test/unit/relation_tag_test.rb [new file with mode: 0644]
test/unit/relation_test.rb [new file with mode: 0644]
test/unit/trace_test.rb [new file with mode: 0644]
test/unit/tracepoint_test.rb [new file with mode: 0644]
test/unit/tracetag_test.rb [new file with mode: 0644]
test/unit/user_token_test.rb [new file with mode: 0644]

index 8185d5891c037904b6a1a68e4b4bfd3e19d5992a..d2755bdfd4edbe8781399363233f671a5de91f98 100644 (file)
@@ -8,7 +8,7 @@ t2:
   k: 'test'
   v: 'yes'
 
-t2:
+t3:
   id: 3
   k: 'test'
   v: 'yes'
diff --git a/test/unit/node_tag_test.rb b/test/unit/node_tag_test.rb
new file mode 100644 (file)
index 0000000..5e4d479
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/relation_member_test.rb b/test/unit/relation_member_test.rb
new file mode 100644 (file)
index 0000000..d67ac34
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/relation_tag_test.rb b/test/unit/relation_tag_test.rb
new file mode 100644 (file)
index 0000000..38c8af2
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/relation_test.rb b/test/unit/relation_test.rb
new file mode 100644 (file)
index 0000000..b5b6391
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/trace_test.rb b/test/unit/trace_test.rb
new file mode 100644 (file)
index 0000000..706455a
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/tracepoint_test.rb b/test/unit/tracepoint_test.rb
new file mode 100644 (file)
index 0000000..5d41005
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/tracetag_test.rb b/test/unit/tracetag_test.rb
new file mode 100644 (file)
index 0000000..4eaf41e
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/test/unit/user_token_test.rb b/test/unit/user_token_test.rb
new file mode 100644 (file)
index 0000000..2bc1a2d
--- /dev/null
@@ -0,0 +1,10 @@
+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