mastodon/spec/helpers
Neil Matatall 1f5740e65c
Use Rails tag API to build RSS feed for spoilers and polls (#20163)
* Use Rails tag API to build RSS feed for spoilers and polls

While the previous method did not contain a bug or a potential issue,
the tag API can be very resilient against future problems and reduces the
amount of manual management of the escape status of the content.

I've added tests to ensure that the formatting is broken and still
escapes control characters correctly.

* this seems cleaner and passes

* Incorporate feedback by moving the br to its own line and using the tag helper over the string constant for the br tag itself

* whoops, tag helper doesn't use a self-closing tag
2022-12-15 16:39:41 +01:00
..
admin Add audit log entries for user roles (#19040) 2022-08-25 20:39:40 +02:00
accounts_helper_spec.rb Split AccountsHelper from StatusesHelper (#12078) 2019-10-24 22:50:09 +02:00
application_helper_spec.rb Fix typo in application_helper_spec.rb (#20981) 2022-12-15 16:20:55 +01:00
flashes_helper_spec.rb
formatting_helper_spec.rb Use Rails tag API to build RSS feed for spoilers and polls (#20163) 2022-12-15 16:39:41 +01:00
home_helper_spec.rb
instance_helper_spec.rb Do not default site_title with site_hostname in InstanceHelper (#6624) 2018-03-04 20:29:49 +01:00
jsonld_helper_spec.rb Fix compacted JSON-LD possibly causing compatibility issues on forwarding (#17428) 2022-02-03 14:09:04 +01:00
languages_helper_spec.rb Test the native_locale_name of a non-standard locale (#20284) 2022-11-11 00:06:18 +01:00
routing_helper_spec.rb
statuses_helper_spec.rb Change RTL detection to rely on unicode-bidi paragraph by paragraph (#14573) 2020-12-15 12:56:43 +01:00