erwinjunker / regressor

Generate specs for your rails application the easy way. Regressor generates model and controller specs based on validations, associations, enums, database, routes, callbacks. Use regressor to capture your rails application behaviour.
MIT License
206 stars 33 forks source link

Add shoulda-callback-matchers to test model callbacks #13

Open aaronchi opened 9 years ago

aaronchi commented 9 years ago

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

erwinjunker commented 9 years ago

Guess thats possible by using

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

Will look further into that.