- Select the target location in the Project tool window.
- Press Alt+InsertAlt+Insert.
- In the New pop-up menu, select the desired test template:

Click image to close this popup
Click thumbnail to view larger image. - For an RSpec or Test-Spec test templates, specify the names for the test file, behavior, and "should".
For a TestUnit test template, specify the name for the file and test case.

- Press Alt+InsertAlt+Insert.
- In the Generate pop-up menu, select the desired test template.
- Specify the test generator arguments, if any, and options, and click OK. The respective generator script is executed, and displays its output in the console tab of the Run tool window.
Tip
If you create a controller in a Rails application, a Test::Unit test template is generated automatically. If you generate an RSpec Controller, the corresponding RSpec test is generated automatically.

