Replace deprecated RSpec 2 syntax. Add a guard against it in the helper.