Fix RSpec deprecation warning