# How to find/open Spec::Expectations and Spec::Matchers

**URL:** <https://www.ruby-forum.com/t/how-to-find-open-spec-expectations-and-spec-matchers/146592>\
**Category:** Rails\
**Created:** [August 22, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/how-to-find-open-spec-expectations-and-spec-matchers/146592 "2008-08-22T18:47:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [August 22, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/how-to-find-open-spec-expectations-and-spec-matchers/146592/1 "2008-08-22T18:47:25Z")

</div>

Hi,

Then RSpec 1.4 recommends, in the webpage  
[http://rspec.info/documentation/expectations.html](http://rspec.info/documentation/expectations.html),  
referencing the subject items.

I’m running ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] over  
WinXP-Pro/SP2.

I believe I installed RSpec with a Ruby gem. At least, I think that’s  
confirmed because I have a lot of stuff in the directory K:\_Utilities  
\ruby186-26\_rc2\ruby\lib\ruby\gems\1.8\doc\rspec-1.1.4

I didn’t find any Expectations or Matchers in the rspec-1.1.4  
directory. So, how can I find and open these files for reading?

Thanks in Advance,  
Richard

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [August 23, 2008, 12:32am UTC](https://www.ruby-forum.com/t/how-to-find-open-spec-expectations-and-spec-matchers/146592/2 "2008-08-23T00:32:00Z")

</div>

On Fri, Aug 22, 2008 at 11:46 AM, RichardOnRails  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> Then RSpec 1.4 recommends, in the webpage [http://rspec.info/documentation/expectations.html](http://rspec.info/documentation/expectations.html),  
> referencing the subject items.

It also has a link to the RDoc:

See Spec::Expectations and Spec::Matchers in the RDoc for more  
information.

Follow that link to [http://rspec.info/rdoc/index.html](http://rspec.info/rdoc/index.html) and you’ll see  
links to docs for both modules.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![RichardOnRails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e0b2c6/32.png) [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Post date:** [August 23, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/how-to-find-open-spec-expectations-and-spec-matchers/146592/3 "2008-08-23T22:36:43Z")

</div>

Hi David,

I finally “got it”. The documentation is great!

I’m new to testing. I tried Ruby’s unit testing a little but thought  
it was tedious. (I probably didn’t know what I was doing anyway.) The  
B’more on Rails group did a presentation on RSpec this month. It  
persuaded me to try that tack.

Now I’ve developed a small Ruby app using the loop: write-a-little-  
spec / write-just-enough-code / refactor-occasionally.

I’m hooked. Thanks for RSpec.

Best wishes,  
Richard
