From 69bd542d61bbc2a5c23aac98f01f74f46dead65a Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 19 Apr 2010 01:49:48 -0300 Subject: test refactor --- railties/test/application/configuration_test.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'railties/test/application/configuration_test.rb') 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 -- cgit v1.2.3