Sha256: f700f94b138df89bc30b6c48435263a6336a67e867a0b3bd3ef0604f34514632

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 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__)}/fixtures/#{file}")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mms2r-1.1.10 test/test_helper.rb
mms2r-1.1.11 test/test_helper.rb
mms2r-1.1.12 test/test_helper.rb
mms2r-1.1.4 test/test_helper.rb
mms2r-1.1.6 test/test_helper.rb
mms2r-1.1.5 test/test_helper.rb
mms2r-1.1.7 test/test_helper.rb
mms2r-1.1.8 test/test_helper.rb
mms2r-1.1.9 test/test_helper.rb