Module: DemoMode::FactoryBotExt
- Included in:
- FactoryBot
- Defined in:
- lib/demo_mode/factory_bot_ext.rb
Instance Method Summary collapse
Instance Method Details
#around_each(&block) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/demo_mode/factory_bot_ext.rb', line 16 def around_each(&block) @around_each ||= ->(&blk) { blk.call } if block_given? previous = @around_each @around_each = ->(&blk) { previous.call { block.call(&blk) } } end @around_each end |