diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-01 06:11:31 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-01 06:11:31 +0000 |
commit | b79f7d127aeaa4d563fbe3be5ae2db03d75354be (patch) | |
tree | 699641f15c4132a536a7b89a21f152f679a66d3f /actionpack/test | |
parent | f33963aa3aba0d242f8faedbfe858f129e24ae03 (diff) | |
download | rails-b79f7d127aeaa4d563fbe3be5ae2db03d75354be.tar.gz rails-b79f7d127aeaa4d563fbe3be5ae2db03d75354be.tar.bz2 rails-b79f7d127aeaa4d563fbe3be5ae2db03d75354be.zip |
Ruby 1.9: no args is 0 arity, not -1 as in 1.8
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9187 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/dispatcher_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/dispatcher_test.rb b/actionpack/test/controller/dispatcher_test.rb index c64defeed4..aa26cae006 100644 --- a/actionpack/test/controller/dispatcher_test.rb +++ b/actionpack/test/controller/dispatcher_test.rb @@ -87,8 +87,8 @@ class DispatcherTest < Test::Unit::TestCase def test_to_prepare_with_identifier_replaces a = b = nil - Dispatcher.to_prepare(:unique_id) { a = b = 1 } - Dispatcher.to_prepare(:unique_id) { a = 2 } + Dispatcher.to_prepare(:unique_id) { |*args| a = b = 1 } + Dispatcher.to_prepare(:unique_id) { |*args| a = 2 } @dispatcher.unprepared = true @dispatcher.send! :prepare_application |