Forum: Ruby on Rails error message

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60c421971b231beb5a28b9ea458cf812?d=identicon&s=25 Delirium tremens (Guest)
on 2008-11-02 19:54
(Received via mailing list)
When I run a test, I get the error message: "FormatError: Bad data for
Story fixture named two (nil)". What should I do about it?
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-02 20:09
(Received via mailing list)
On 2 Nov 2008, at 18:53, Delirium tremens wrote:

>
> When I run a test, I get the error message: "FormatError: Bad data for
> Story fixture named two (nil)". What should I do about it?

sounds like your stories.yml fixture file has something fishy in it.

Fred
60c421971b231beb5a28b9ea458cf812?d=identicon&s=25 Delirium tremens (Guest)
on 2008-11-02 20:16
(Received via mailing list)
My stories.yml file did not have identation. I added it, with 2
spaces, then it worked!
This topic is locked and can not be replied to.