Sha256: 796ab3d4780bb227e8851287ea4dc1d65823512e6adea6e7e9e49f0cde001e1f

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

require 'minitest/autorun'
require 'runger_email_reply_trimmer'
require 'timeout'

class TestRungerEmailReplyTrimmer < 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

3 entries across 3 versions & 1 rubygems

Version Path
runger_email_reply_trimmer-0.3.0 test/test_email_matcher.rb
runger_email_reply_trimmer-0.2.2 test/test_email_matcher.rb
runger_email_reply_trimmer-0.2.1 test/test_email_matcher.rb