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

  • SEARCH
  • Home
  • 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 7921613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:38:52+00:00 2026-06-03T16:38:52+00:00

After making a new rails 3.2.3 application, I generated a new scaffold to play

  • 0

After making a new rails 3.2.3 application, I generated a new scaffold to play around with some code. I was running some rake tasks later on and accidentally entered ‘rake’ without any arguments. To my surprise, it ran 7 tests and 10 assertions with 0 failures… Why? I didn’t add any tests to the application.

Were these tests generated with the scaffold? It appears that the tests are located in the /test directory. I want to use rspec, not test::unit or anything like that. If this is something other than rspec, is it safe to just deleted the /test directory or is there more underlying work to remove this?

  • 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-06-03T16:38:54+00:00Added an answer on June 3, 2026 at 4:38 pm

    Yes! The tests are generated along with the scaffolding. They don’t do much more than assert that the scaffold controller is routing correctly, but you can safely remove them. It’s probably best to remove the test files themselves rather than the entire test directory (just in case you end up having any use for Test::Unit down the line), but you can find all of the generated tests in the following subdirectories:

    test/functional
    test/unit/
    test/unit/helpers
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After making some changes in my models (eg. new field in a model and
After making a few modifications to a rails app I am tinkering on, railroad
I'm new to rails after moving from PHP and am having no end to
Making good progress on rails now, but hit a snag on heroku deployment. After
After making some changes to my SQL database structure (using scripts in SQL Server
in my web application i am facing a issue after making it live. i
In rails, is it possible to pass arguments in when making a new object,
I've created a music service for my application (a music player), and after making
i am making an application in C#. In this application i am doing some
After making a gzip deflate request in PHP, I receive the deflated string in

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.