On 10/13/07, Priit Tamboom <priit.tamboom at eesti.ee>
wrote:> 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 :-)
>
> it ''should have response with 64.233.167.99''
>
> 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
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>