Rails new "-T" option, does it create an app without tests?

If you type:

rails -h

You'll see it explains the -T option like so:

-T, [--skip-test-unit], [--no-skip-test-unit]          # Skip Test::Unit files

In other words, this command tells Rails to skip the generation of Test::Unit files and folders. (Test::Unit is the default Rails testing framework.)

Without the -T option, two things happen by default:

  1. The rails app is intialized with a test directory containing:

    test/controllers
    test/fixtures
    test/helpers
    test/integration
    test/mailers
    test/models
    test_helper.rb
    

    You won't need these directories or the test_helper because you'll be using RSpec, which has it's own folder structure and helpers.

  2. Test::Unit test cases are auto-generated whenever you generate a model, controller, scaffold, etc.

    This is also unneeded because once you install RSpec, you'll be using RSpec's automatic spec generators.

Hope that helps!