Fix RSpec deprecation errors