Skip to content
Browse files

test refactor

  • Loading branch information...
1 parent 137d8e0 commit 69bd542d61bbc2a5c23aac98f01f74f46dead65a @spastorino spastorino committed Apr 19, 2010
Showing with 8 additions and 2 deletions.
  1. +8 −2 railties/test/application/configuration_test.rb
View
10 railties/test/application/configuration_test.rb
@@ -292,9 +292,12 @@ def index
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 @@ def index
end
class ::OmgController < ActionController::Base
+ @@count = 0
+
caches_action :index
def index
- render :text => rand(1000)
+ @@count += 1
+ render :text => @@count
end
end

0 comments on commit 69bd542

Please sign in to comment.
Something went wrong with that request. Please try again.