module Torkify::Log
  class TestError < Struct.new(:filename, :lnum, :text, :type)
    def clean_text
      text.strip
    end
  end
end

module Torkify::Log
  class TestError
    attr_accessor :filename, :lnum, :text, :type

    def initialize(filename, lnum, text, type)
      @filename = filename
      @lnum     = lnum
      @text     = text
      @type     = type
    end

    def clean_text
      text.strip
    end
  end
end

Fix superclass mismatch by using struct
Fix superclass mismatch by using struct
