Fix RSpec deprecation warnings.