mastodon/spec/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 Rename admin/accounts_helper to admin/filter_helper (#1816) 2017-04-15 03:09:55 +02:00
application_helper_spec.rb View spec fix (#1888) 2017-04-16 03:40:33 +02:00
home_helper_spec.rb Adding a bunch of tests 2016-02-26 15:28:08 +01:00
instance_helper_spec.rb Instance helper to replace site title helper (#2038) 2017-04-18 00:16:32 +02:00
routing_helper.rb Adding a bunch of tests 2016-02-26 15:28:08 +01:00
stream_entries_helper_spec.rb Add test coverage to CSS class generation (#2285) 2017-04-23 06:04:32 +02:00