rspec test for ruby script