I'm doing a coding challenge and have a simple 1 file ruby program (e.g. processor.rb) that accepts arguments via a file passed on the command line, like so:
$ ruby processor.rb < inputs.txt
I'm fairly lost with how to implement tests (I'm used to having it all ready to go in a Rails app). Do I add them to the same file (processor.rb)? Do I create a separate test file and run that with a separate command?
Any help much appreciated. On the surface this might seem similar to this question but none of those answers are what I'm looking for.
spec, and in itprocessor_spec.rb; but it is not a law.aruba-rspecBridge RSpec and Aruba/ArubaDoubles to test command-line tools