Fix enum test unused variable warning.

Fix enum test unused variable warning.
Related - https://github.com/rails/rails/commit/5c55aafd38f45ac019573f98438ffdbdc8c580f9
cc @senny