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 6970791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:45:18+00:00 2026-05-27T16:45:18+00:00

I have two apps. One is a very simple app that I built with

  • 0

I have two apps. One is a very simple app that I built with rails new..., added a unit test to and ran the unit test. The other is an existing app that is running fine but I’d like to add some tests to it. In AppA (the simple one) when I run rake -vT I see:

...
rake test               # Runs test:units, test:functionals, test:integrati...
rake test:recent        # Run tests for {:recent=>"test:prepare"} / Test re...
rake test:single        # Run tests for {:single=>"test:prepare"}
rake test:uncommitted   # Run tests for {:uncommitted=>"test:prepare"} / Te...
...

Which seems normal. But when I run that same command in AppB (the existing app) I don’t see any of the commands related to rake test. My first thought was to just ‘bring over’ the tests from AppA to AppB to see if that would help. So I wiped all content from the test directory in AppB and copied over the test directory from AppA. Still no rake test in the list of apps. But I can run a unit test in AppB via ruby -Itest test/unit/first_test.rb (oddly I have to comment out fixtures :all to get it to work, maybe that’s a clue).

  • 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-27T16:45:18+00:00Added an answer on May 27, 2026 at 4:45 pm

    Found the answer to this last night. Where a new app’s application.rb has:

      require 'rails/all'
    

    I had:

      require "action_controller/railtie"
      require "action_mailer/railtie"
      require "active_resource/railtie"
      require "sprockets/railtie"
      require "rails/test_unit/railtie"
    

    I did that because I was following a guide about MongoMapper I think. Go forward a few versions and the last line is commented out — that’s the real reason. I commented it out at the same time I switched my ODM over to Mongoid. I’m not sure why I commented it out, but that definitely did it.

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

Sidebar

Related Questions

I have two rails apps that I am thinking about merging into one because
I have to pass parameters between two rails apps. In one side (sender) I
I have two apps (one for the iPhone, the other for the iPad) that
I have two apps that use Integrated Security. One assigns Integrated Security = true
I have two Rails apps, one client using ActiveResource and one service. I am
Possible stupid question: let's say I have two apps contained within one project. Can
I have two WCF apps communicating one-way over named pipes. All is nice, except
I have two apps, one runs in namespace com.gtosoft.voyager and the other is com.gtosoft.dash.
I have two cocoa-touch apps in one Xcode project. Xcode gives me iPhone/iPad related
We have two Apps live on the Appstore. One for free, and one full

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.