[rspec-users] rspec, rspec-rails 1.1.99-12 and script/spec 'no such file to load -- spec'
geetarista at gmail.com
Fri Mar 13 15:48:44 EDT 2009
I'm having similar issues, but when I run the CMD + R command in
1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such
file to load -- spec (LoadError) from /System/Library/Frameworks/
custom_require.rb:27:in `require' from /Users/robbyc/Library/
mate.rb:14 from /tmp/textmate-command-5945.rb:2:in `require' from /tmp/
On Mar 6, 3:02 pm, rockrep <rock... at gmail.com> wrote:
> Hi David, all:
> I just recently upgraded to Rails 2.3.1RC2 (Mac OS.X 10.5.6, ruby
> 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]) and have been
> dilligently following the instructions for upgrading rspec and rspec-
> rails according to: http://wiki.github.com/dchelimsky/rspec/rails-with-rspec-gems.
> I have successfully built the rspec and rspec-rails gems, installed
> and unpacked them, and ran script/generate rspec successfully.
> 'rakespec' works fine, however 'script/spec' fails with error:
> $ script/specspec
> script/spec:3:in `require':nosuchfiletoload--spec(LoadError)
> script/speclooks like:
> #!/usr/bin/env ruby
> $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../
> require 'spec'
> exit ::Spec::Runner::CommandLine.run
> and 'rake gems RAILS_ENV=test' returns:
> - [R] rspec >= 220.127.116.11
> - [F] rspec-rails >= 18.104.22.168
> - [R] rspec = 22.214.171.124
> - [F] rack = 0.9.1
> - [ ] cucumber >= 0.1.13
> - [ ] hoe >= 1.9.0
> I = Installed
> F = Frozen
> R = Framework (loaded before rails starts)
> rspec does not exist in vendor/gems, but rspec-rails does. It seems
> it's marked as 'R' which (1) I'm not certain I understand why, and (2)
> seems to prevent unpacking into vendor/gems. In any case, I would
> like to resolve the issue with script/spec.
> Since rspec is also not installed in vendor/plugins the LOAD_PATH line
> in script/speclooks odd, but I'm not sure it's the cause.
> Any pointers greatly appreciated. Thanks,
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users