Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aaronchi opened this issue Aug 5, 2015 · 1 comment
Open

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

aaronchi opened this issue Aug 5, 2015 · 1 comment

Comments

@aaronchi
Copy link

aaronchi commented Aug 5, 2015

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

@erwinjunker
Copy link
Owner

Guess thats possible by using

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

Will look further into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants