about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorJoël Quenneville <joel.quen@gmail.com>2017-04-23 00:04:32 -0400
committerEugen <eugen@zeonfederated.com>2017-04-23 06:04:32 +0200
commit0c2fe22bc19a82899c7577410bc869db7d42955a (patch)
tree10961704fdb4a80524a00cd180864c3d9a16e578 /app/controllers
parent6f0b3b069f3ee9a9eceec77666fc124b9695f124 (diff)
Add test coverage to CSS class generation (#2285)
The code that generates CSS is based on a lot of boolean conditions.
The possible combinations of these grows exponentially as we add more
conditions.

Since most of the code is conditional on a single boolean, we tested the
following:

1. All `false`
2. All `true`
3. Each individual flag set to `true`

The methods tested are:

* `StreamEntriesHelper#style_classes`
* `StreamEntriesHelper#microformats_classes`
* `StreamEntriesHelper#microformats_h_class`
Diffstat (limited to 'app/controllers')
0 files changed, 0 insertions, 0 deletions