Rspec mock validation condition in Validator helper methods

前端 未结 0 1635
遥遥无期
遥遥无期 2021-01-12 13:35

Is there any way of mock these condition checks, without creating a delivery object for each scenario

delivery.blank?

is_delivery_complete?

delivery.pho

相关标签:
回答
  • 消灭零回复
提交回复
热议问题