mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move spec/rubyspec to spec/ruby for consistency
* Other ruby implementations use the spec/ruby directory. [Misc #13792] [ruby-core:82287] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75bfc6440d
commit
1d15d5f080
4370 changed files with 0 additions and 0 deletions
7
spec/ruby/library/thread/queue/append_spec.rb
Normal file
7
spec/ruby/library/thread/queue/append_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/enque', __FILE__)
|
||||
|
||||
describe "Thread::Queue#<<" do
|
||||
it_behaves_like :queue_enq, :<<, -> { Queue.new }
|
||||
end
|
9
spec/ruby/library/thread/queue/clear_spec.rb
Normal file
9
spec/ruby/library/thread/queue/clear_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/clear', __FILE__)
|
||||
|
||||
describe "Thread::Queue#clear" do
|
||||
it_behaves_like :queue_clear, :clear, -> { Queue.new }
|
||||
|
||||
# TODO: test for atomicity of Queue#clear
|
||||
end
|
9
spec/ruby/library/thread/queue/close_spec.rb
Normal file
9
spec/ruby/library/thread/queue/close_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/close', __FILE__)
|
||||
|
||||
ruby_version_is "2.3" do
|
||||
describe "Queue#close" do
|
||||
it_behaves_like :queue_close, :close, -> { Queue.new }
|
||||
end
|
||||
end
|
9
spec/ruby/library/thread/queue/closed_spec.rb
Normal file
9
spec/ruby/library/thread/queue/closed_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/closed', __FILE__)
|
||||
|
||||
ruby_version_is "2.3" do
|
||||
describe "Queue#closed?" do
|
||||
it_behaves_like :queue_closed?, :closed?, -> { Queue.new }
|
||||
end
|
||||
end
|
7
spec/ruby/library/thread/queue/deq_spec.rb
Normal file
7
spec/ruby/library/thread/queue/deq_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/deque', __FILE__)
|
||||
|
||||
describe "Thread::Queue#deq" do
|
||||
it_behaves_like :queue_deq, :deq, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/empty_spec.rb
Normal file
7
spec/ruby/library/thread/queue/empty_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/empty', __FILE__)
|
||||
|
||||
describe "Thread::Queue#empty?" do
|
||||
it_behaves_like :queue_empty?, :empty?, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/enq_spec.rb
Normal file
7
spec/ruby/library/thread/queue/enq_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/enque', __FILE__)
|
||||
|
||||
describe "Thread::Queue#enq" do
|
||||
it_behaves_like :queue_enq, :enq, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/length_spec.rb
Normal file
7
spec/ruby/library/thread/queue/length_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/length', __FILE__)
|
||||
|
||||
describe "Thread::Queue#length" do
|
||||
it_behaves_like :queue_length, :length, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/num_waiting_spec.rb
Normal file
7
spec/ruby/library/thread/queue/num_waiting_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/num_waiting', __FILE__)
|
||||
|
||||
describe "Thread::Queue#num_waiting" do
|
||||
it_behaves_like :queue_num_waiting, :num_waiting, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/pop_spec.rb
Normal file
7
spec/ruby/library/thread/queue/pop_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/deque', __FILE__)
|
||||
|
||||
describe "Thread::Queue#pop" do
|
||||
it_behaves_like :queue_deq, :pop, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/push_spec.rb
Normal file
7
spec/ruby/library/thread/queue/push_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/enque', __FILE__)
|
||||
|
||||
describe "Thread::Queue#push" do
|
||||
it_behaves_like :queue_enq, :push, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/shift_spec.rb
Normal file
7
spec/ruby/library/thread/queue/shift_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/deque', __FILE__)
|
||||
|
||||
describe "Thread::Queue#shift" do
|
||||
it_behaves_like :queue_deq, :shift, -> { Queue.new }
|
||||
end
|
7
spec/ruby/library/thread/queue/size_spec.rb
Normal file
7
spec/ruby/library/thread/queue/size_spec.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require File.expand_path('../../../../spec_helper', __FILE__)
|
||||
require 'thread'
|
||||
require File.expand_path('../../shared/queue/length', __FILE__)
|
||||
|
||||
describe "Thread::Queue#size" do
|
||||
it_behaves_like :queue_length, :size, -> { Queue.new }
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue