Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 9187

Show
Ignore:
Timestamp:
04/01/08 06:11:31 (5 months ago)
Author:
bitsweat
Message:

Ruby 1.9: no args is 0 arity, not -1 as in 1.8

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/test/controller/dispatcher_test.rb

    r9055 r9187  
    8888  def test_to_prepare_with_identifier_replaces 
    8989    a = b = nil 
    90     Dispatcher.to_prepare(:unique_id) { a = b = 1 } 
    91     Dispatcher.to_prepare(:unique_id) { a = 2 } 
     90    Dispatcher.to_prepare(:unique_id) { |*args| a = b = 1 } 
     91    Dispatcher.to_prepare(:unique_id) { |*args| a = 2 } 
    9292 
    9393    @dispatcher.unprepared = true