Fixed RSpec deprecation warnings.