Sha256: b62d498e3def4345c929fe0dcc7b03582ebc5355a47c13f43c416058a4935527

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true
require "minitest/autorun"
require "email_reply_trimmer"
require "timeout"

class TestEmailReplyTrimmer < Minitest::Test
  def test_does_not_hang_when_no_embedded_email_is_found
    Timeout.timeout(5) do
      EmbeddedEmailMatcher.match?(example("does_not_contain_embedded_email.txt"))
    end
  end

  def example(filename)
    File.read("test/matchers/#{filename}").strip
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_reply_trimmer-0.2.0 test/test_email_matcher.rb