Skip to content

Commit

Permalink
test refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Apr 19, 2010
1 parent 137d8e0 commit 69bd542
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions railties/test/application/configuration_test.rb
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 69bd542

Please sign in to comment.