Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
inner_array is a hash, not an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Hollensbe committed Apr 23, 2011
1 parent c501e38 commit 5d60967
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/controllers/application_controller.rb
Expand Up @@ -24,10 +24,10 @@ def fill_results_page
def populate_os_matrix test_results
os_matrix = {}
test_results.each do |result|
inner_array = (os_matrix[result.ruby_version] ||= {})[OSTranslator.translate(result.operating_system)] ||= {}
inner_array[:pass] ||= 0
inner_array[:fail] ||= 0
inner_array[result.result ? :pass : :fail] += 1
inner_hash = (os_matrix[result.ruby_version] ||= {})[OSTranslator.translate(result.operating_system)] ||= {}
inner_hash[:pass] ||= 0
inner_hash[:fail] ||= 0
inner_hash[result.result ? :pass : :fail] += 1
end
os_matrix
end
Expand Down

0 comments on commit 5d60967

Please sign in to comment.