fix the user unit test so that it doesn't use a depricated method in rails 2.2.2
[rails.git] / test / unit / old_node_tag_test.rb
index 4971843489a88853d9f534d671702f4455f1a7fd..f2203005cc677e119bf0bf7a6cc2a8668e00453a 100644 (file)
@@ -1,12 +1,10 @@
 require File.dirname(__FILE__) + '/../test_helper'
 
 class OldNodeTest < Test::Unit::TestCase
 require File.dirname(__FILE__) + '/../test_helper'
 
 class OldNodeTest < Test::Unit::TestCase
-  set_fixture_class :nodes => OldNode
-  set_fixture_class :node_tags => OldNodeTag
-  fixtures  :users, :nodes, :node_tags
-  
+  api_fixtures
+
   def test_old_node_tag_count
   def test_old_node_tag_count
-    assert_equal 8, OldNodeTag.count, "Unexpected number of fixtures loaded."
+    assert_equal 9, OldNodeTag.count, "Unexpected number of fixtures loaded."
   end
   
   def test_length_key_valid
   end
   
   def test_length_key_valid