[rspec-users] specing system
aslak.hellesoy at gmail.com
Sat Oct 13 13:10:53 EDT 2007
On 10/13/07, Priit Tamboom <priit.tamboom at eesti.ee> wrote:
> 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 126.96.36.199'
> 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.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users