<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>Hi David,<br><br>Thank you for your response.<br><br>Got it working:<br><br>The rspec_on_rails was not being loaded because it appeared in the line<br>config.plugins -= %W( query_trace ... } # plugins that should NOT be loaded<br><br>in the file config/environments/test.rb<br><br>Fix: check that both rspec and rspec_on_rails plugins are being loaded in test.rb environment file.<br><br>Some details:<br>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. <br><br>Regards,<br><br>Larry<br><br><br><div style="font-family: times new roman,new
york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: David Chelimsky <dchelimsky@gmail.com><br>To: rspec-users <rspec-users@rubyforge.org><br>Sent: Wednesday, May 21, 2008 9:38:02 AM<br>Subject: Re: [rspec-users] running rspec on 1.2.3 ??<br><br><div>On May 20, 2008, at 11:26 PM, Larry Kluger wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><div><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;">Hi,<br><br>Anyone know
how to run rspec on 1.2.3?<br><br>It fails out of the box....<br><br><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px;">I newly downloaded rspec, rspec_on_rails and ran the command<br>ruby script/generate rspec ==>>> Does this script work right?<span class="Apple-converted-space"> </span><br>from the instructions <span class="Apple-converted-space"> </span><a rel="nofollow" target="_blank" href="http://rspec.info/documentation/rails/install.html">http://rspec.info/documentation/rails/install.html</a><br><br>I then created the directories in spec:<span class="Apple-converted-space"> </span><br> controllers, fixtures, helpers, models, views<br><br>I then created the file spec/models/user_spec.rb as a spec for my model
User.</div></div></div></div></div></div></span></blockquote><div><br></div><div>Did you run 'script/generate rspec'?</div>[yes, see my statement to that effect above.]<br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><div><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px; font-family: 'times new roman','new york',times,serif; font-size: 12pt;"><div style="margin: 0px;">Anyhow, my
problem:<br>I run rake spec<br>and get<span class="Apple-converted-space"> </span><br><br>/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)<br><br>The file /spec/spec_helper.rb contains the line<br>require 'spec/rails'<br><br>I noticed that the load path does not include vendor/plugins/rspec_on_rails/lib</div></div></div></div></div></div></span></blockquote><div><br></div><div>That's weird. The load path should include the lib directory of every plugin. What version of rails are you running?</div><div>[v 1.2.3, as stated above :-) ]<br><br></div><div>David</div><div><br></div></div></div></div></div></body></html>