discourse/spec/system/composer
Daniel Waterworth 6e161d3e75
DEV: Allow fab! without block (#24314)
The most common thing that we do with fab! is:

    fab!(:thing) { Fabricate(:thing) }

This commit adds a shorthand for this which is just simply:

    fab!(:thing)

i.e. If you omit the block, then, by default, you'll get a `Fabricate`d object using the fabricator of the same name.
2023-11-09 16:47:59 -06:00
..
category_templates_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
default_to_subcategory_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
dont_feed_the_trolls_popup_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
post_validation_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
preview_spec.rb DEV: Add diffhtml composer preview specs (#22333) 2023-06-29 09:37:44 +02:00
review_media_unless_trust_level_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
template_validation_spec.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00