manish's blog

Testing with Ruby on Rails

  1. From the moment we create a new application using the Rails command simply creates the test directory structure.
  2. Every time we run the generate script to create a model or a controller, Rails creates a test file to hold a corresponding test stub.
  3. A Rails test suite is split into three fundamental parts

          a. Unit Tests – Unit tests cover model-level functionality, which generally encompasses an application’s sore business logic.

Syndicate content