Created
May 28, 2013 18:53
-
-
Save jeremyf/5665155 to your computer and use it in GitHub Desktop.
hooks callback halting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
should 'does not halt callbacks when a non-true result is encountered' do | |
@mum.class.after_eight { :before_failure } | |
@mum.class.after_eight { false } | |
@mum.class.after_eight { :after_failure } | |
results = @mum.run_hook(:after_eight) | |
assert_equal [:before_failure, false, :after_failure], results | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This passes in hooks 0.2.2