require File.dirname(__FILE__) + '/../test_helper'
-class WayTagTest < Test::Unit::TestCase
- fixtures :current_way_tags
- set_fixture_class :current_way_tags => WayTag
+class WayTagTest < ActiveSupport::TestCase
+ api_fixtures
def test_way_tag_count
assert_equal 3, WayTag.count
tag.id = current_way_tags(:t1).id
tag.k = key*i
tag.v = current_way_tags(:t1).v
- assert_valid tag
+ assert tag.valid?
end
end
tag.id = current_way_tags(:t1).id
tag.k = "k"
tag.v = val*i
- assert_valid tag
+ assert tag.valid?
end
end