In a ruby file to be run from bash, I want to test that all my rspec
tests have passed. So I want something like
test_script.rb
#!/usr/bin/env ruby
ls = `rspec spec`
if ls == 'passed' then do something
Is there an rspec
option or some other way to do this?