On Aug 13, 4:14 pm, Aljaz Fajmut <[email protected]>
wrote:
> 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
>
> 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 viahttp://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