Fix RSpec deprecation notices