Fix RSpec deprecation error