aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/callbacks_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-08 11:31:25 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-08 11:37:26 -0700
commit1ff1236b079d379bbf0ceaf19d7efc3ee97d0406 (patch)
tree5fcbdaedb956a5dc3b669e61905fa8d3907014f2 /activesupport/test/callbacks_test.rb
parentd77c64590a075284343aa6cf200f2a9c2e160a86 (diff)
downloadrails-1ff1236b079d379bbf0ceaf19d7efc3ee97d0406.tar.gz
rails-1ff1236b079d379bbf0ceaf19d7efc3ee97d0406.tar.bz2
rails-1ff1236b079d379bbf0ceaf19d7efc3ee97d0406.zip
we need to indicate the type of callback
Diffstat (limited to 'activesupport/test/callbacks_test.rb')
-rw-r--r--activesupport/test/callbacks_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb
index 8df1c5bb7a..0a79cb037c 100644
--- a/activesupport/test/callbacks_test.rb
+++ b/activesupport/test/callbacks_test.rb
@@ -807,9 +807,9 @@ module CallbacksTest
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