The test directory |
|
---|---|
Return to the main rstat.us index We like tests a lot. They give us confidence to change the code and know that we haven't broken anything known to have worked before. We use minitest/minispec-- we tend to use minispec's |
|
The |
acceptance/ |
The test |
data/ |
This directory contains the tests for the decorator objects. These are Model View objects that make use of the draper gem and generate some of the HTML. |
decorators/ |
Fabricators are ways to easily create objects in tests without having to specify every attribute every time. They are similar to Factories. Rstat.us uses fabrication for this. |
fabricators/ |
The |
lib/ |
The |
models/ |
The test helper file has some configuration and methods that are useful for many of the tests. |
test_helper.rb |