discourse/spec
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
..
fabricators DEV: Move shared_drafts_min_trust_level to group setting (#24257) 2023-11-07 14:03:25 +10:00
fixtures SECURITY: Onebox templates' HTML injections. 2023-11-09 13:39:11 +11:00
helpers DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
import_export DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
initializers DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
integration DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
integrity DEV: Remove enable_experimental_hashtag_autocomplete logic (#22820) 2023-08-08 11:18:55 +10:00
jobs DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
lib DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
mailers DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
migrations DEV: Switch over category settings to new table - Part 3 (#20657) 2023-09-12 09:51:49 +08:00
models DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
multisite DEV: Add S3 upload system specs using minio (#22975) 2023-08-23 11:18:33 +10:00
requests DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
script/import_scripts DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
serializers DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
services DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
support DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
system DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
tasks DEV: Remove the transpilation message (#23998) 2023-10-19 01:00:15 +02:00
views DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
rails_helper.rb DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
regenerate_swagger_docs DEV: Add API docs for uploads and API doc watcher (#15387) 2021-12-23 08:40:15 +10:00
swagger_helper.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00