1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
module Concurrent
RSpec.describe 'configuration', notravis: true do
context 'global executors' do
it 'creates a global timer set' do
expect(Concurrent.global_timer_set).not_to be_nil
expect(Concurrent.global_timer_set).to respond_to(:post)
end
it 'creates a global fast executor' do
expect(Concurrent.global_fast_executor).not_to be_nil
expect(Concurrent.global_fast_executor).to respond_to(:post)
end
it 'creates a global io executor' do
expect(Concurrent.global_io_executor).not_to be_nil
expect(Concurrent.global_io_executor).to respond_to(:post)
end
end
end
end
|