Fix RSpec DEPRECATION warning.