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