How would you test observers with rSpec in a Ruby on Rails application?

前端 未结 4 561
萌比男神i
萌比男神i 2020-12-23 09:50

Suppose you have an ActiveRecord::Observer in one of your Ruby on Rails applications - how do you test this observer with rSpec?

4条回答
提交回复
热议问题