Remove redundant GC.disable and GC.enable

This commit is contained in:
Shuhei Kitagawa 2018-03-12 21:11:48 +09:00 committed by Shishir Kakaraddi
parent 93391aff6a
commit 1e40b7d2f7

View File

@ -33,9 +33,6 @@ describe FastJsonapi::ObjectSerializer, performance: true do
} }
} }
before(:all) { GC.disable }
after(:all) { GC.enable }
context 'when testing performance of serialization' do context 'when testing performance of serialization' do
it 'should create a hash of 1000 records in less than 50 ms' do it 'should create a hash of 1000 records in less than 50 ms' do
movies = 1000.times.map { |_i| movie } movies = 1000.times.map { |_i| movie }