class CCK::MessagesComparator

def compare_message(found, expected)

def compare_message(found, expected)
  return unless found.is_a?(Cucumber::Messages::Message)
  return if found.is_a?(Cucumber::Messages::GherkinDocument)
  return if found.is_a?(Cucumber::Messages::Pickle)
  return if found.is_a?(Cucumber::Messages::Timestamp) && expected.is_a?(Cucumber::Messages::Timestamp)
  return if found.is_a?(Cucumber::Messages::Duration) && expected.is_a?(Cucumber::Messages::Duration)
  @compared << found.class.name
  @all_errors << @validator.compare(found, expected)
  compare_sub_messages(found, expected)
end