Use the Ruby Unit::Test framework to write and run unit tests on Ruby files in 3rdRail.
Rails creates a default unit test for each model created. Find template Unit test files in the:
Open a unit test in theand replace template data with test data.
Thefile holds the fixtures template for the associated test:
To run unit tests on Ruby code:
The test runs and results are displayed in the.
Here is more information about unit testing Ruby code: