unit tests and fixtures

Hello

I'm experiencing some problems using rails fixtures with unit tests.

With my version of Ruby I have to define test with the following syntax:

test 'some test' do
  assert..
end

instead of

def test_some_test
  assert..
end

If I try to include/load the fixtures by using:
  fixtures :stories, :votes

after the class definition, I get the following errors:

StandardError: No fixture with name..

What am I doing wrong?
Is this the latest Ruby test code or am I using some outdated version?
Is there any place that I could check that (I tried with some googling
without relevant results)?

Thanks in advance!

Hello

I'm experiencing some problems using rails fixtures with unit tests.

With my version of Ruby I have to define test with the following syntax:

test 'some test' do
assert..
end

instead of

def test_some_test
assert..
end

Either syntax works.

If I try to include/load the fixtures by using:
fixtures :stories, :votes

you don't need that any more - The default test_helper.rb is set to
load all fixtures.

Fred

Have you got a record 'first:' in stories.yml? If so check the syntax
carefully.

Colin

You should write
fixtures :stories, :votes, :first