The bug can be described as a bug on `String#to_f`, so the spec would be

# string_spec.rb
describe String do
  context '#to_f' do
    it 'should not segfault' do
      # move test code here
    end
  end
end