Fix RSpec call to avoid deprecation warning