Sha256: f47c21940b7195d968cb0a686b04c39773138c96b2f0122f9596eecf1d9c4bc5

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
email_reply_trimmer-0.1.13 test/test_email_matcher.rb
email_reply_trimmer-0.1.12 test/test_email_matcher.rb
email_reply_trimmer-0.1.11 test/test_email_matcher.rb
email_reply_trimmer-0.1.10 test/test_email_matcher.rb
email_reply_trimmer-0.1.9 test/test_email_matcher.rb
email_reply_trimmer-0.1.8 test/test_email_matcher.rb