diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-19 01:49:48 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-19 11:44:11 -0300 |
commit | 69bd542d61bbc2a5c23aac98f01f74f46dead65a (patch) | |
tree | 746db0964e714df47b04db80212c1f8dac4114d8 /railties/test/application | |
parent | 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972 (diff) | |
download | rails-69bd542d61bbc2a5c23aac98f01f74f46dead65a.tar.gz rails-69bd542d61bbc2a5c23aac98f01f74f46dead65a.tar.bz2 rails-69bd542d61bbc2a5c23aac98f01f74f46dead65a.zip |
test refactor
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/configuration_test.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 0f3bc1a46a..4f1fc3c299 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -292,9 +292,12 @@ module ApplicationTests end class ::OmgController < ActionController::Base + @@count = 0 + caches_action :index def index - render :text => rand(1000) + @@count += 1 + render :text => @@count end end @@ -310,9 +313,12 @@ module ApplicationTests end class ::OmgController < ActionController::Base + @@count = 0 + caches_action :index def index - render :text => rand(1000) + @@count += 1 + render :text => @@count end end |