Fix RSpec deprecation warnings about old "stub" syntax