Remove version conditional for calling GC.disable

This commit is contained in:
Rafael Mendonça França 2015-01-04 15:03:36 -03:00
parent dc7ed96adc
commit cf01d01bd9
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class FinderTest < ActiveRecord::TestCase
end
def test_symbols_table_ref
gc_disabled = GC.disable if RUBY_VERSION >= '2.2.0'
gc_disabled = GC.disable
Post.where("author_id" => nil) # warm up
x = Symbol.all_symbols.count
Post.where("title" => {"xxxqqqq" => "bar"})