]> git.openstreetmap.org Git - rails.git/blobdiff - test/unit/changeset_tag_test.rb
Update Potlatch 2 to 2.3-11-gfd60020 build
[rails.git] / test / unit / changeset_tag_test.rb
index c89f426ccc02ccb3ae316f33cfb4266f842e3820..46194b505ff7dc3a92a5005fc55d2b79aba44063 100644 (file)
@@ -1,10 +1,10 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
-class ChangesetTagTest < Test::Unit::TestCase
+class ChangesetTagTest < ActiveSupport::TestCase
   api_fixtures
 
   def test_changeset_tag_count
-    assert_equal 1, ChangesetTag.count
+    assert_equal 2, ChangesetTag.count
   end
   
   def test_length_key_valid
@@ -14,7 +14,7 @@ class ChangesetTagTest < Test::Unit::TestCase
       tag.id = 1
       tag.k = key*i
       tag.v = "v"
-      assert_valid tag
+      assert tag.valid?
     end
   end
   
@@ -25,7 +25,7 @@ class ChangesetTagTest < Test::Unit::TestCase
       tag.id = 1
       tag.k = "k"
       tag.v = val*i
-      assert_valid tag
+      assert tag.valid?
     end
   end