mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 23:34:10 +08:00
6e161d3e75
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. |
||
---|---|---|
.. | ||
category_templates_spec.rb | ||
default_to_subcategory_spec.rb | ||
dont_feed_the_trolls_popup_spec.rb | ||
post_validation_spec.rb | ||
preview_spec.rb | ||
review_media_unless_trust_level_spec.rb | ||
template_validation_spec.rb |