lib/onceover/rspec/formatters.rb in onceover-3.22.0 vs lib/onceover/rspec/formatters.rb in onceover-4.0.0

- old
+ new

@@ -125,13 +125,13 @@ # Delete any matches where there was no error text scanned_errors.delete_if { |e| e.first.empty? } scanned_errors.map do |error_matches| { - text: error_matches[0], - file: calculate_relative_source(error_matches[1]), - line: error_matches[2], + text: error_matches[0], + file: calculate_relative_source(error_matches[1]), + line: error_matches[2], column: error_matches[3], } end elsif ERROR_WITHOUT_LOCATION.match(compilation_error) scanned_errors = match['error'].scan(ERROR_WITHOUT_LOCATION) @@ -221,10 +221,9 @@ end def longest_group RSpec.configuration.world.example_groups.max { |a,b| a.description.length <=> b.description.length}.description.length end - end class OnceoverFormatterParallel < OnceoverFormatter require 'yaml'