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
activitystreams2_builder_helper.rb
application_helper.rb
flashes_helper.rb
home_helper.rb
instance_helper.rb
routing_helper.rb
settings_helper.rb
stream_entries_helper.rb Add test coverage to CSS class generation (#2285) 2017-04-23 06:04:32 +02:00
style_helper.rb