require File.dirname(__FILE__) + '/../test_helper'
-class OldRelationTagTest < Test::Unit::TestCase
- fixtures :relation_tags
- set_fixture_class :relation_tags => OldRelationTag
+class OldRelationTagTest < ActiveSupport::TestCase
+ api_fixtures
def test_tag_count
- assert_equal 3, OldRelationTag.count
+ assert_equal 7, OldRelationTag.count
end
def test_length_key_valid
tag.version = 1
tag.k = key*i
tag.v = "v"
- assert_valid tag
+ assert tag.valid?
end
end
tag.version = 1
tag.k = "k"
tag.v = val*i
- assert_valid tag
+ assert tag.valid?
end
end