# Method missing for rspec route\_for

**URL:** <https://www.ruby-forum.com/t/method-missing-for-rspec-route-for/139331>\
**Category:** Rails\
**Created:** [June 2, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/method-missing-for-rspec-route-for/139331 "2008-06-02T23:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [June 2, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/method-missing-for-rspec-route-for/139331/1 "2008-06-02T23:39:06Z")

</div>

Hi,

I’m trying to run a simple rspec route\_for example and I’m getting a  
method missing error on “route\_for”. I searched in all files in the  
rspec gem, as well as in the plugins directories, and there is no  
trace of “route\_for”. I’m using version 1.1.3.  
What am I doing wrong?

Thanks,  
Tiberiu

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [June 2, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/method-missing-for-rspec-route-for/139331/2 "2008-06-02T23:55:34Z")

</div>

Could you post the code for review?

---

<div class="post-metadata">

**Author:** ![mr\_tibs](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/439d5e/32.png) [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Post date:** [June 3, 2008, 1:38am UTC](https://www.ruby-forum.com/t/method-missing-for-rspec-route-for/139331/3 "2008-06-03T01:38:10Z")

</div>

Hi Michael,

I just realized that I was running my spec with the gem spec instead  
of ./script/spec.

Thanks,  
Tiberiu
