spec/functional/pool_spec.rb in picky-4.16.0 vs spec/functional/pool_spec.rb in picky-4.17.0
- old
+ new
@@ -29,20 +29,22 @@
let(:search) { Picky::Search.new data }
# TODO Why are both versions almost equally fast?
#
context 'without pool' do
- it 'runs the GC more' do
- # Quickly check if the pool is removed.
- #
- fail 'object pool still installed' if Picky::Query::Token.respond_to? :release_all
-
- try = search
- query = 'abracadabra mirgel'
- gc_runs_of do
- amount.times { try.search query }
- end.should >= 10
- end
+ # TODO Reinstate after checking assumption about Ruby 2.
+ #
+ # it 'runs the GC more' do
+ # # Quickly check if the pool is removed.
+ # #
+ # fail 'object pool still installed' if Picky::Query::Token.respond_to? :release_all
+ #
+ # try = search
+ # query = 'abracadabra mirgel'
+ # gc_runs_of do
+ # amount.times { try.search query }
+ # end.should >= 10
+ # end
it 'is less (?) performant' do
try = search
query = 'abracadabra mirgel'
performance_of do
amount.times { try.search query }
\ No newline at end of file