Specing system


Having some wine on Saturday and just playing around writing some ruby

  • have you spec any ‘system’ method? As long I know it just returns
    false or true and everything else is just out of reach; prove me I’m
    wrong :slight_smile:

it ‘should have response with’

system ‘ping google.com


On 10/13/07, Priit T. [email protected] wrote:

system ‘ping google.com


I’d use IO.popen, or redirect the output of the system call to a file
and look inside that afterwards.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs