diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-24 23:02:23 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-03-24 23:02:23 -0700 |
commit | af4c2375a270c7ddd71269593427a1d9f23be515 (patch) | |
tree | 3e5d025f8538f97d3448d07e39ff9b89e36fdb9f /activesupport/test | |
parent | 9ea840f568a0ca56a514ac9488bae5df6390533e (diff) | |
download | rails-af4c2375a270c7ddd71269593427a1d9f23be515.tar.gz rails-af4c2375a270c7ddd71269593427a1d9f23be515.tar.bz2 rails-af4c2375a270c7ddd71269593427a1d9f23be515.zip |
Remove core ext dependency from test
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/callbacks_test.rb | 8 |
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) |