Specing system

Hi!

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

  • 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 64.233.167.99’

system ‘ping google.com

Priit

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

system ‘ping google.com

Priit

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

A

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