Topic: Fixtures not loading on test

Has anyone run into the issue of their fixtures not being loaded in a test?  I'm running a unit test and the fixtures are not being loaded.  If I run "rake db:fixtures:load" before I run the actual file 'ruby test/unit/content_test.rb' it seems to work.  But, when I run "rake test:units", the test that fails is the second one to run and I'm wondering if the first test is wiping out all the data or something.  Here is a snippet of my test:
----------------------------------------------------
require File.dirname(__FILE__) + '/../test_helper'

class ContentTest < Test::Unit::TestCase
  fixtures :users, :contents

  def test_tagging
    z = Content.find 1
    z.my_tags = 'hello, world'
    tags = z.my_tags
    assert_match /hello/, tags
    assert_match /world/, tags

----------------------------------------------------

Does anyone have any idea what's going on?

Re: Fixtures not loading on test

Maybe try z.save! after .my_tags (and maybe z.reload after that)?

BrewControl.com - Brewery and Brewpub management powered by RoR