1
0
Fork 1
forked from fedi/mastodon
mastodon/app
Joël Quenneville 0c2fe22bc1 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`
2017-04-23 06:04:32 +02:00
..
assets Adding arabic string localization (rebased) (#1895) 2017-04-23 05:58:47 +02:00
controllers ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197) 2017-04-23 05:21:10 +02:00
helpers Add test coverage to CSS class generation (#2285) 2017-04-23 06:04:32 +02:00
lib [WIP] Html lang on statuses (#2297) 2017-04-22 04:26:25 +02:00
mailers Instance helper to replace site title helper (#2038) 2017-04-18 00:16:32 +02:00
models ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197) 2017-04-23 05:21:10 +02:00
presenters Adds version to about/more and API (#2181) 2017-04-21 03:30:59 +02:00
services Improve bio compatibility (#2278) 2017-04-22 03:33:24 +02:00
validators Organize coverage dirs (#1695) 2017-04-13 16:00:31 +02:00
views ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197) 2017-04-23 05:21:10 +02:00
workers Quick best practice cleanup of views/helpers (#1546) 2017-04-12 18:24:18 +02:00