regressor icon indicating copy to clipboard operation
regressor copied to clipboard

Add shoulda-callback-matchers to test model callbacks

Open aaronchi opened this issue 10 years ago • 1 comments

Would be nice to support this as well: https://github.com/beatrichartz/shoulda-callback-matchers

aaronchi avatar Aug 05 '15 23:08 aaronchi

Guess thats possible by using

Model._save_callbacks.select { |cb| cb.kind.eql?(:before) }

Will look further into that.

ndea avatar Aug 06 '15 06:08 ndea