Recursively search for all files with names ending with "_test.rb", renaming them to end with "_spec.rb", using at most 1000000 characters per command.
find . -name "*_test.rb" | xargs -s 1000000 rename s/_test/_spec/