diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-10 19:36:27 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-11 15:54:43 -0300 |
commit | c7ba4c7c9898fe4dae1f80d341c9cb1d5ef345d4 (patch) | |
tree | eec1121ca225dfe37239e7283f9b5be553f5d20b /actionpack | |
parent | 5da8c1627c4495f1bf6a4b2b1c223451726204a7 (diff) | |
download | rails-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.rb | 4 |
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 |