Permalink
Browse files

we need to indicate the type of callback

  • Loading branch information...
tenderlove committed May 8, 2013
1 parent d77c645 commit 1ff1236b079d379bbf0ceaf19d7efc3ee97d0406
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/callbacks_test.rb
@@ -807,9 +807,9 @@ def build_class(callback, n = 10)
Class.new {
include ActiveSupport::Callbacks
define_callbacks :foo
- n.times { set_callback :foo, callback }
+ n.times { set_callback :foo, :before, callback }
def run; run_callbacks :foo; end
- def self.skip(thing); skip_callback :foo, thing; end
+ def self.skip(thing); skip_callback :foo, :before, thing; end
}
end

0 comments on commit 1ff1236

Please sign in to comment.