Minitest Setup

Learn more on Minitest setup, setup blocks and Minitest factories.

One of the clearest differences between the RSpec and Minitest ways is setting up different data for different tests. In RSpec, the describe method is used to enclose an arbitrary number of tests to give each group of tests a different setup. For example, our Project specs in spec/models/project_spec.rb file have three different groups, one without a task, one with a task, and one with a ...