mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
f33963aa3a
commit
b79f7d127a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue