2011-09-02 21:00:21 +00:00
|
|
|
module Jasmine::Headless::ReportMessage
|
|
|
|
class Console
|
2011-12-29 23:37:23 +00:00
|
|
|
def self.new_from_parts(parts)
|
|
|
|
new(parts.first)
|
2011-09-02 21:00:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :message
|
|
|
|
|
|
|
|
def initialize(message)
|
|
|
|
@message = message
|
|
|
|
end
|
|
|
|
|
|
|
|
def ==(other)
|
|
|
|
self.message == other.message
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|