temp_file should return result of block as in ruby1.9
v2.0.6