Sha256: ba3905ffa518abdd58df10a4b8ed0a6b700c93458e36be5fa96f3219811136f7
Contents?: true
Size: 768 Bytes
Versions: 6
Compression:
Stored size: 768 Bytes
Contents
require 'timeout' RSpec.describe Magick::Image, '#read' do describe 'issue #200' do before do # pid = Process.spawn File.join(SUPPORT_DIR, 'issue_200', 'app.rb'), err: :close, out: :close # begin # Timeout.timeout(1) do # _, @status = Process.waitpid2 pid # end # rescue Timeout::Error # Process.kill('KILL', pid) # _, @status = Process.waitpid2 pid # end end it 'not hangs with nil argument' do skip expect(@status.signaled?).to be_falsey end it 'raise error with nil argument' do skip expect(@status.success?).to be_truthy expect { Magick::Image.read(nil) }.to raise_error(Magick::ImageMagickError, /unable to open image nil/) end end end
Version data entries
6 entries across 6 versions & 1 rubygems