Rails 2.1 RC1
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
This commit is contained in:
parent
14afed5893
commit
5292899c9a
971 changed files with 46318 additions and 17450 deletions
23
vendor/rails/railties/test/console_app_test.rb
vendored
23
vendor/rails/railties/test/console_app_test.rb
vendored
|
@ -1,4 +1,4 @@
|
|||
require File.dirname(__FILE__) + '/abstract_unit'
|
||||
require 'abstract_unit'
|
||||
|
||||
require 'action_controller' # console_app uses 'action_controller/integration'
|
||||
|
||||
|
@ -13,17 +13,20 @@ require 'console_app'
|
|||
Test::Unit.run = false
|
||||
|
||||
class ConsoleAppTest < Test::Unit::TestCase
|
||||
def test_reload_should_fire_preparation_callbacks
|
||||
a = b = c = nil
|
||||
uses_mocha 'console reload test' do
|
||||
def test_reload_should_fire_preparation_callbacks
|
||||
a = b = c = nil
|
||||
|
||||
Dispatcher.to_prepare { a = b = c = 1 }
|
||||
Dispatcher.to_prepare { b = c = 2 }
|
||||
Dispatcher.to_prepare { c = 3 }
|
||||
Dispatcher.to_prepare { a = b = c = 1 }
|
||||
Dispatcher.to_prepare { b = c = 2 }
|
||||
Dispatcher.to_prepare { c = 3 }
|
||||
ActionController::Routing::Routes.expects(:reload)
|
||||
|
||||
reload!
|
||||
reload!
|
||||
|
||||
assert_equal 1, a
|
||||
assert_equal 2, b
|
||||
assert_equal 3, c
|
||||
assert_equal 1, a
|
||||
assert_equal 2, b
|
||||
assert_equal 3, c
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue