Skip to content
Andrew Geweke edited this page Nov 26, 2013 · 5 revisions

Because low_card_tables manipulates the data in an application's database, and therefore any bugs can have long-term, potentially catastrophic effects, it is very thoroughly tested. There are two different kinds of specs for it:

Unit Specs

These live in spec/low_card_tables/unit, and test each class in isolation, independent of any other classes. To run them, simply do:

rspec spec/low_card_tables/unit

...and you're done. No database is necessary, since these are unit tests.

The unit specs alone, however, would miss a lot of very important design -- the interaction between the classes, which, after all, is what causes the entire system to behave correctly (or not behave correctly).

System Specs

The system specs test the entire low_card_tables

Clone this wiki locally