Skip to content

Instantly share code, notes, and snippets.

@jeremyf
Created May 28, 2013 18:53
Show Gist options
  • Save jeremyf/5665155 to your computer and use it in GitHub Desktop.
Save jeremyf/5665155 to your computer and use it in GitHub Desktop.
hooks callback halting
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
@jeremyf
Copy link
Author

jeremyf commented May 28, 2013

This passes in hooks 0.2.2

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