jasmine-headless-webkit/lib/jasmine/headless/report_message/spec.rb

23 lines
449 B
Ruby
Raw Normal View History

module Jasmine::Headless::ReportMessage
class Spec
class << self
def new_from_parts(parts)
file_info = parts.pop
new(parts.join(' '), file_info)
end
end
attr_reader :statement, :file_info
def initialize(statement, file_info)
@statement, @file_info = statement, file_info
end
def ==(other)
self.statement == other.statement && self.file_info == other.file_info
end
end
end