Sha256: 1b5f99d0cf4579670ece76abda651d10fc32e95671c1b1e7b4598b11930c311b
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
require 'spec_helper' module Concurrent describe SingleThreadExecutor do if jruby? it 'inherits from JavaSingleThreadExecutor' do SingleThreadExecutor.ancestors.should include(JavaSingleThreadExecutor) end else it 'inherits from RubySingleThreadExecutor' do SingleThreadExecutor.ancestors.should include(RubySingleThreadExecutor) end end end describe ThreadPoolExecutor do if jruby? it 'inherits from JavaThreadPoolExecutor' do ThreadPoolExecutor.ancestors.should include(JavaThreadPoolExecutor) end else it 'inherits from RubyThreadPoolExecutor' do ThreadPoolExecutor.ancestors.should include(RubyThreadPoolExecutor) end end end describe CachedThreadPool do if jruby? it 'inherits from JavaCachedThreadPool' do CachedThreadPool.ancestors.should include(JavaCachedThreadPool) end else it 'inherits from RubyCachedThreadPool' do CachedThreadPool.ancestors.should include(RubyCachedThreadPool) end end end describe FixedThreadPool do if jruby? it 'inherits from JavaFixedThreadPool' do FixedThreadPool.ancestors.should include(JavaFixedThreadPool) end else it 'inherits from RubyFixedThreadPool' do FixedThreadPool.ancestors.should include(RubyFixedThreadPool) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems