mastodon/app/helpers
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
..
admin Admin reports with accounts (#2092) 2017-04-18 19:36:18 +02:00
activitystreams2_builder_helper.rb ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197) 2017-04-23 05:21:10 +02:00
application_helper.rb View spec fix (#1888) 2017-04-16 03:40:33 +02:00
flashes_helper.rb Clean up flash display in views (#2336) 2017-04-23 04:22:34 +02:00
home_helper.rb Improve initialState loading 2017-01-09 12:37:53 +01:00
instance_helper.rb Instance helper to replace site title helper (#2038) 2017-04-18 00:16:32 +02:00
routing_helper.rb Fix rubocop issues, introduce usage of frozen literal to improve performance 2016-11-15 16:56:29 +01:00
settings_helper.rb Add Indonesian (Bahasa Indonesia / id) translation (#2200) 2017-04-21 19:16:26 +02:00
stream_entries_helper.rb Add test coverage to CSS class generation (#2285) 2017-04-23 06:04:32 +02:00
style_helper.rb Check for a custom css file to help customization of instances (#1368) 2017-04-15 22:47:48 +02:00