aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/callbacks_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-03-24 23:02:23 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-03-24 23:02:23 -0700
commitaf4c2375a270c7ddd71269593427a1d9f23be515 (patch)
tree3e5d025f8538f97d3448d07e39ff9b89e36fdb9f /activesupport/test/callbacks_test.rb
parent9ea840f568a0ca56a514ac9488bae5df6390533e (diff)
downloadrails-af4c2375a270c7ddd71269593427a1d9f23be515.tar.gz
rails-af4c2375a270c7ddd71269593427a1d9f23be515.tar.bz2
rails-af4c2375a270c7ddd71269593427a1d9f23be515.zip
Remove core ext dependency from test
Diffstat (limited to 'activesupport/test/callbacks_test.rb')
-rw-r--r--activesupport/test/callbacks_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb
index 2bc2e1eaf0..2f747e2238 100644
--- a/activesupport/test/callbacks_test.rb
+++ b/activesupport/test/callbacks_test.rb
@@ -7,11 +7,11 @@ class Record
class << self
def callback_symbol(callback_method)
- returning("#{callback_method}_method") do |method_name|
- define_method(method_name) do
- history << [callback_method, :symbol]
- end
+ method_name = "#{callback_method}_method"
+ define_method(method_name) do
+ history << [callback_method, :symbol]
end
+ method_name
end
def callback_string(callback_method)