# Expect.pm like module in ruby

**URL:** <https://www.ruby-forum.com/t/expect-pm-like-module-in-ruby/136842>\
**Category:** Ruby\
**Created:** [May 6, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/expect-pm-like-module-in-ruby/136842 "2008-05-06T19:48:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveen\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@Praveen\_R](https://www.ruby-forum.com/u/Praveen_R)\
**Post date:** [May 6, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/expect-pm-like-module-in-ruby/136842/1 "2008-05-06T19:48:11Z")

</div>

Hello All  
Is there a ‘expect’ like Module for ruby? Something like this perl  
Module:

> **[Expect.pm - Expect for Perl - metacpan.org](https://metacpan.org/release/RGIERSIG/Expect-1.21/view/Expect.pod)**
>
> Expect for Perl

[http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod](http://search.cpan.org/%7Ergiersig/Expect-1.21/Expect.pod)

I tried searching for a gem but nothing seems to come up in google.  
Any direction will be appreciated.  
thx

---

<div class="post-metadata">

**Author:** ![Praveen\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@Praveen\_R](https://www.ruby-forum.com/u/Praveen_R)\
**Post date:** [May 6, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/expect-pm-like-module-in-ruby/136842/2 "2008-05-06T20:02:55Z")

</div>

On May 6, 2008, at 10:47 , Praveen R. wrote:

> Is there a ‘expect’ like Module for ruby? Something like this perl  
> Module:
> 
> [Expect.pm - Expect for Perl - metacpan.org](http://search.cpan.org/~rgiersig/Expect-1.21/Expect.pod) \<[Expect.pm - Expect for Perl - metacpan.org](http://search.cpan.org/%7Ergiersig/Expect-1.21/Expect.pod)
> 
> > 
> 
> I tried searching for a gem but nothing seems to come up in google.

you already have it:

% ruby -ve ‘p require(“expect”)’  
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]  
true
