Module: Ductwork::Testing::Helpers
- Defined in:
- lib/ductwork/testing/helpers.rb
Instance Method Summary collapse
Instance Method Details
#pipelines_created_around(&block) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ductwork/testing/helpers.rb', line 6 def pipelines_created_around(&block) before_ids = Ductwork::Pipeline.ids block.call after_ids = Ductwork::Pipeline.ids ids_delta = after_ids - before_ids Ductwork::Pipeline.where(id: ids_delta) end |