diff options
Diffstat (limited to 'spec/ruby/library/thread/sizedqueue/push_spec.rb')
-rw-r--r-- | spec/ruby/library/thread/sizedqueue/push_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/ruby/library/thread/sizedqueue/push_spec.rb b/spec/ruby/library/thread/sizedqueue/push_spec.rb new file mode 100644 index 0000000000..6021a043c9 --- /dev/null +++ b/spec/ruby/library/thread/sizedqueue/push_spec.rb @@ -0,0 +1,12 @@ +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#push" do + it_behaves_like :queue_enq, :push, -> { SizedQueue.new(10) } +end + +describe "Thread::SizedQueue#push" do + it_behaves_like :sizedqueue_enq, :push +end |