1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

@ -55,7 +55,7 @@ class FinderTest < ActiveRecord::TestCase
end end
def test_symbols_table_ref 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 Post.where("author_id" => nil) # warm up
x = Symbol.all_symbols.count x = Symbol.all_symbols.count
Post.where("title" => {"xxxqqqq" => "bar"}) Post.where("title" => {"xxxqqqq" => "bar"})