Update heap_spec.rb

unnecessary variable x removed.