# Re: running rspec on 1.2.3?

**URL:** <https://www.ruby-forum.com/t/re-running-rspec-on-1-2-3/138279>\
**Category:** RSpec\
**Created:** [May 21, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/re-running-rspec-on-1-2-3/138279 "2008-05-21T17:01:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldk2005](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/d9b06d/32.png) [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Post date:** [May 21, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/re-running-rspec-on-1-2-3/138279/1 "2008-05-21T17:01:56Z")

</div>

Hi David,

Thank you for your response.

Got it working:

The rspec\_on\_rails was not being loaded because it appeared in the line  
config.plugins -= %W( query\_trace … } # plugins that should NOT be  
loaded

in the file config/environments/test.rb

Fix: check that both rspec and rspec\_on\_rails plugins are being loaded  
in test.rb environment file.

Some details:  
A confusing bit is that it appears that the rspec load path is being  
added by the rspec runner. So even though the rspec plugin was ALSO NOT  
being initialized by RoR, the problem was occurring with rspec\_on\_rails.

Regards,

Larry

----- Original Message ----  
From: David C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: rspec-users [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Wednesday, May 21, 2008 9:38:02 AM  
Subject: Re: [rspec-users] running rspec on 1.2.3 ??

On May 20, 2008, at 11:26 PM, Larry K. wrote:

Hi,

Anyone know how to run rspec on 1.2.3?

It fails out of the box…

I newly downloaded rspec, rspec\_on\_rails and ran the command  
ruby script/generate rspec ==\>\>\> Does this script work right?  
from the instructions  
[http://rspec.info/documentation/rails/install.html](http://rspec.info/documentation/rails/install.html)

I then created the directories in spec:  
controllers, fixtures, helpers, models, views

I then created the file spec/models/user\_spec.rb as a spec for my model  
User.

Did you run ‘script/generate rspec’?[yes, see my statement to that  
effect above.]

Anyhow, my problem:  
I run rake spec  
and get

/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem\_original\_require’: no such file to load – spec/rails  
(MissingSourceFile)

The file /spec/spec\_helper.rb contains the line  
require ‘spec/rails’

I noticed that the load path does not include  
vendor/plugins/rspec\_on\_rails/lib

That’s weird. The load path should include the lib directory of every  
plugin. What version of rails are you running?  
[v 1.2.3, as stated above 🙂]

David
