SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simply Rails 2 : Votes test erro

    Hi,
    Stuck on page 241 of the book. The tests are failing.
    Here is screenshot of errors. I have typed exactly as per the book.
    Attached Images Attached Images

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,237
    Mentioned
    194 Post(s)
    Tagged
    2 Thread(s)
    Do your test/fixtures/ files look like
    stories.yml
    Code:
    # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
    
    one:
      name: My shiny weblog 
      link: http://poocs.net/ 
    
    two:
      name: SitePoint Forums 
      link: http://www.sitepoint.com/forums/
    votes.yml
    Code:
    # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
    
    one:
      story: one
    
    two:
      story: one

  3. #3
    SitePoint Member
    Join Date
    Apr 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    my votes.yml read as

    one:
    story: 1

    two:
    story: 1

    FIXED
    Thanks again


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •