gitlab-org--gitlab-foss/spec/features/markdown
Patrick Bajao 2eecfd8f9d Use Redis for CacheMarkDownField on non AR models
This allows using `CacheMarkdownField` for models that are not backed
by ActiveRecord.

When the including class inherits `ActiveRecord::Base` we include
`Gitlab::MarkdownCache::ActiveRecord::Extension`. This will cause the
markdown fields to be rendered and the generated HTML stored in a
`<field>_html` attribute on the record. We also store the version
used for generating the markdown.

All other classes that include this model will include the
`Gitlab::MarkdownCache::Redis::Extension`. This add the `<field>_html`
attributes to that model and will generate the html in them. The
generated HTML will be cached in redis under the key
`markdown_cache:<class>:<id>`. The class this included in must
therefore respond to `id`.
2019-06-05 13:19:59 +08:00
..
copy_as_gfm_spec.rb Added tightLists option to copy_as_gfm markdown serializer 2019-03-05 18:08:39 +00:00
gitlab_flavored_markdown_spec.rb Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
markdown_spec.rb Remove Redcarpet markdown engine 2019-02-04 12:48:35 +01:00
math_spec.rb Fix rubocop violations 2019-01-31 21:31:25 +01:00
mermaid_spec.rb Merge branch 'security-mermaid-xss' into 'master' 2018-11-28 19:09:28 -05:00