diff --git a/lib/churn/location_mapping.rb b/lib/churn/location_mapping.rb index 91305c1..ec0828b 100644 --- a/lib/churn/location_mapping.rb +++ b/lib/churn/location_mapping.rb @@ -30,7 +30,7 @@ def process_class(exp) start_line = exp.line last_line = deep_last_line(exp) name = name if name.is_a?(Symbol) - name = name.values.value if name.is_a?(Sexp) #deals with cases like class Test::Unit::TestCase + name = name.to_a.last if name.is_a?(Sexp) #deals with cases like class Test::Unit::TestCase @current_class = name @klasses_collection[name.to_s] = [] unless @klasses_collection.include?(name) @klasses_collection[name.to_s] << (start_line..last_line)