aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-10 19:36:27 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-03-11 15:54:43 -0300
commitc7ba4c7c9898fe4dae1f80d341c9cb1d5ef345d4 (patch)
treeeec1121ca225dfe37239e7283f9b5be553f5d20b /actionpack
parent5da8c1627c4495f1bf6a4b2b1c223451726204a7 (diff)
downloadrails-c7ba4c7c9898fe4dae1f80d341c9cb1d5ef345d4.tar.gz
rails-c7ba4c7c9898fe4dae1f80d341c9cb1d5ef345d4.tar.bz2
rails-c7ba4c7c9898fe4dae1f80d341c9cb1d5ef345d4.zip
Skip fetching path if the iteration is going to be skipped
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb
index e12bf0a1c6..9dae78d25d 100644
--- a/actionpack/lib/action_controller/test_case.rb
+++ b/actionpack/lib/action_controller/test_case.rb
@@ -42,13 +42,13 @@ module ActionController
end
ActiveSupport::Notifications.subscribe("!render_template.action_view") do |name, start, finish, id, payload|
- path = payload[:identifier]
next if payload[:virtual_path] # files don't have virtual path
+
+ path = payload[:identifier]
if path
@_files[path] += 1
@_files[path.split("/").last] += 1
end
-
end
end