Sha256: bc2bb9b7056ec00c263ca8aab01c832028f01a7a81b7f6636958b8b15bfd5817

Contents?: true

Size: 397 Bytes

Versions: 6

Compression:

Stored size: 397 Bytes

Contents

module MMS2R
  module TestHelper
  
    def assert_file_size(file, size)
      assert_not_nil(file, "file was nil")
      assert(File::exist?(file), "file #{file} does not exist")
      assert(File::size(file) == size, "file #{file} is #{File::size(file)} bytes, not #{size} bytes")
    end
  
    def load_mail(file)
      IO.readlines("#{File.dirname(__FILE__)}/files/#{file}")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mms2r-1.0.6 test/test_helper.rb
mms2r-1.0.7 test/test_helper.rb
mms2r-1.1.0 test/test_helper.rb
mms2r-1.1.1 test/test_helper.rb
mms2r-1.1.2 test/test_helper.rb
mms2r-1.1.3 test/test_helper.rb