mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
13 lines
382 B
Ruby
13 lines
382 B
Ruby
|
require File.expand_path('../../../../spec_helper', __FILE__)
|
||
|
require 'thread'
|
||
|
require File.expand_path('../../shared/queue/enque', __FILE__)
|
||
|
require File.expand_path('../shared/enque', __FILE__)
|
||
|
|
||
|
describe "Thread::SizedQueue#enq" do
|
||
|
it_behaves_like :queue_enq, :enq, -> { SizedQueue.new(10) }
|
||
|
end
|
||
|
|
||
|
describe "Thread::SizedQueue#enq" do
|
||
|
it_behaves_like :sizedqueue_enq, :enq
|
||
|
end
|