Fix some RSpec deprecation warnings.