Give a nice error message when parsing the nwr tags and they are missing the k and...
[rails.git] / test / unit / changeset_tag_test.rb
index e0201d53816c470fd64e27fb2901c9a0d03db566..46194b505ff7dc3a92a5005fc55d2b79aba44063 100644 (file)
@@ -1,10 +1,10 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
 require File.dirname(__FILE__) + '/../test_helper'
 
-class ChangesetTagTest < Test::Unit::TestCase
-  fixtures :changeset_tags
+class ChangesetTagTest < ActiveSupport::TestCase
+  api_fixtures
 
   def test_changeset_tag_count
 
   def test_changeset_tag_count
-    assert_equal 1, ChangesetTag.count
+    assert_equal 2, ChangesetTag.count
   end
   
   def test_length_key_valid
   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"
       tag.id = 1
       tag.k = key*i
       tag.v = "v"
-      assert_valid tag
+      assert tag.valid?
     end
   end
   
     end
   end
   
@@ -25,7 +25,7 @@ class ChangesetTagTest < Test::Unit::TestCase
       tag.id = 1
       tag.k = "k"
       tag.v = val*i
       tag.id = 1
       tag.k = "k"
       tag.v = val*i
-      assert_valid tag
+      assert tag.valid?
     end
   end
   
     end
   end