lib/assert/file_line.rb in assert-2.15.2 vs lib/assert/file_line.rb in assert-2.16.0

- old
+ new

@@ -1,10 +1,10 @@ module Assert class FileLine def self.parse(file_line_path) - self.new(*(file_line_path.to_s.match(/(^[^\:]*)\:*(\d*)$/) || [])[1..2]) + self.new(*(file_line_path.to_s.match(/(^[^\:]*)\:*(\d*).*$/) || [])[1..2]) end attr_reader :file, :line def initialize(file = nil, line = nil)