Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 630765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:53:28+00:00 2026-05-13T19:53:28+00:00

I reading/learning agile develpment.. now i’m on Chapter 14 (testing)/ when i tried to

  • 0

I reading/learning “agile develpment..” now i’m on Chapter 14 (testing)/

when i tried to run
“@ruby -I test test/unit/product_test.rb”
i have error that

1) Error:
test_invalid_with_empty_attributes(ProductTest):
ActiveRecord::StatementInvalid: PGError: ERROR:  relation "carts" does not exist
LINE 1: DELETE FROM "carts"
                    ^
: DELETE FROM "carts"

but cart model isn’t belongs to “ActiveRecord”

what i’m doing wrong?

(sorry for mistakes, i’m bad in english)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:53:28+00:00Added an answer on May 13, 2026 at 7:53 pm

    It looks like the database table “carts” does not exist. Rails tests use the ‘test’ database defined in database.yml. You probably have yet to create the test database, or the database schema may be out of date. Try running rake db:test:load or rake db:test:prepare to recreate the test database.

    You can read more by running rake --tasks db:test or checking out the RubyOnRails.org guide to testing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been learning php for sometime now. Besides reading books and doing tutorials
I have just started learning ruby reading from different resources. One of them is
I am currently reading a book, and learning ruby on rails. (Agile Web Development
When I first started reading about and learning ruby, I read something about the
I am learning the concepts of Test-Driven Development through reading the Craftsman articles (click
I'm about to start learning Ruby and would like a bit of reading material
I have been learning ASP.NET by experimenting, watching videos on ASP.NET, and reading forums.
I have spent quite a few hours reading and learning about LINQ to XML , but
Am reading an O'Reilly book called Learning WCF and in chapter one, it mentions:
I'm learning C and I'm reading about type equivalence. I'm curious, does anyone have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.