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

2009/8/14 Colin Law <[email protected]>

>
> 2009/8/14 Aljaz Fajmut <[email protected]>:
> >
> > Frederick Cheung wrote:
> >> On Aug 13, 4:14�pm, Aljaz Fajmut <[email protected]>
> >> wrote:
> >>> 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
> >
> > If I remove the line for including specific fixtures, I still get the
> > errors (although the fixtures exist):
> >
> >  1) Error:
> > test_should_return_3_latest_votes(StoryTest):
> > StandardError: No fixture with name 'first' found for table 'stories'
> >
>
> Have you got a record 'first:' in stories.yml?  If so check the syntax
> carefully.
>
> Colin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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