Я пытаюсь выполнить rspec из ruby и получить статус или количество отказов от метода или что-то в этом роде. На самом деле я запускаю что-то вроде этого:
system("rspec 'myfilepath'")
но я могу получить строку, возвращаемую функцией. Есть ли способ сделать это непосредственно с помощью объектов?