spec/frames_spec.rb in aviglitch-0.2.0 vs spec/frames_spec.rb in aviglitch-0.2.2

- old
+ new

@@ -1,8 +1,11 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper') -describe AviGlitch::Frames do +# Since Ruby 3.3.x, Windows frequently fails to close the Tempfile on GC. +# Although not a fatal error, it should be better to remove them manually in such cases. +# Now this spec is skipped in Windows because it could generate a lot of warning messages and undeleted temp files. +describe AviGlitch::Frames, :skip => Gem.win_platform? do before :all do AviGlitch::Frames.class_eval do define_method(:get_real_id_with) do |frame| movi = @avi.get_movi @@ -477,11 +480,10 @@ a.output @out AviGlitch::Base.surely_formatted?(@out, true).should be true expect(File.size(@out)).to be < File.size(@in) end - it 'should use Enumerator as an external iterator', - :skip => Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('1.9.0') || RUBY_PLATFORM == 'java' do + it 'should use Enumerator as an external iterator' do a = AviGlitch.open @in e = a.frames.each expect { while f = e.next do expect(f).to be_a(AviGlitch::Frame)