diff --git a/spec/ione/io/io_reactor_spec.rb b/spec/ione/io/io_reactor_spec.rb index 1f2fd08..add1642 100644 --- a/spec/ione/io/io_reactor_spec.rb +++ b/spec/ione/io/io_reactor_spec.rb @@ -242,7 +242,7 @@ def fake_connected(connection) it 'creates an acceptor and passes it to the selector as a readable' do reactor.start.value acceptor = reactor.bind(ENV['SERVER_HOST'], port, 5).value - await { selector.last_arguments[0].length > 1 } + await { selector.last_arguments && selector.last_arguments[0].length > 1 } selector.last_arguments[0].should include(acceptor) end