lib/autowatchr.rb in autowatchr-0.1.2 vs lib/autowatchr.rb in autowatchr-0.1.3
- old
+ new
@@ -173,10 +173,10 @@
previously_failed = @failed_tests.keys & files_ran
failed.each do |(test_name, class_name)|
key = classname_to_path(class_name)
if files_ran.include?(key)
@failed_tests[key] ||= []
- @failed_tests[key] << test_name
+ @failed_tests[key] |= [test_name]
previously_failed.delete(key)
else
puts "Couldn't map class to file: #{class_name}"
end
end