Sha256: 583a4ccf9ea768fd82c922b4cbd368bfc9aa3072f78112d49d31bad2a64d3db9
Contents?: true
Size: 650 Bytes
Versions: 5
Compression:
Stored size: 650 Bytes
Contents
require 'minitest_helper' describe File do windows_method = OS.method(:windows?) jruby_method = Ruby.method(:jruby?) after do OS.define_singleton_method :windows?, &windows_method Ruby.define_singleton_method :jruby?, &jruby_method end it 'Fix size for windows and jruby' do OS.define_singleton_method(:windows?) { true } Ruby.define_singleton_method(:jruby?) { true } File.open("#{File.dirname(__FILE__)}/../LICENSE.txt", 'r') { |f| f.size.must_equal 1071 } end it 'Default size for other platforms' do File.open("#{File.dirname(__FILE__)}/../LICENSE.txt", 'r') { |f| f.size.must_equal 1071 } end end
Version data entries
5 entries across 5 versions & 1 rubygems