A test case for rails/rails#14775