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!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to