Replace deprecated RSpec stub syntax