Avoid Float#object_id in a spec for Ruby2.0 and later

Float#object_id returns same number in equlity numbers from Ruby2.0.

    1.0.object_id == 1.0.object_id
    #=> <  2.0: false
    #=> >= 2.0: true