Fix RSpec deprecation warnings