Fix deprecated RSpec syntax