[rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati

David Chelimsky dchelimsky at gmail.com
Fri Jul 30 07:17:15 EDT 2010


On Jul 30, 2010, at 2:03 AM, Amit Jain wrote:

> David Chelimsky wrote:
>> On Jul 29, 2010, at 6:37 AM, Amit Jain wrote:
>> 
>>> 
>>> and
>>> 
>>> ~/mygreatapp/ $ ./script/plugin install 
>>> svn://rubyforge.org/var/svn/rspec/tags/REL_X_Y_Z/vendor/rspec_on_rails/vendor/plugins/rspec
>> 
>> rspec_on_rails is 2 years old and works with 2 year old versions of 
>> rails. Please do this:
>> 
>> 1. delete all rspec plugins from vendor/plugins
>> 2. configure the rspec-rails gem in config/environment.rb:
>> 
>> config.gem "rspec-rails", :version => ">= 1.3.2"
>> 
>> 3. rake gems:install
>> 4. rake gems:unpack
>> 
>> The problem you're having with CVS in vendor/gems is that you installed 
>> it using some means other than what is recommended by Rails, which is to 
>> use "rake gems:unpack". Please remove that and any other gems that you 
>> didn't install with "rake gems:unpack" from your vendor/gems directory, 
>> configure them config/environment.rb, and re-install them with "rake 
>> gems:unpack".
>> 
>> If you continue to have trouble with this, please consult the 
>> ruby-on-rails documentation and/or mailing lists, as your issues are 
>> gem/plugin installation issues, not RSpec issues.
>> 
>> HTH,
>> David
> 
> I am getting some different error message:
> 
> $rcov user_spec.rb
> 
> /home/Amit/Myworkspace/MyApplication/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: 
> Gem::Dependency#version_requirements is deprecated and will be removed 
> on or after August 2010.  Use #requirement
> /home/Amit/Myworkspace/MyApplication/vendor/rails/activesupport/lib/active_support/dependencies.rb:440:in 
> `load_missing_constant': uninitialized constant Rails::Railtie 
> (NameError)
>  from 
> /home/Amit/Myworkspace/MyApplication/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in 
> `const_missing'
>  from 
> /home/Amit/Myworkspace/MyApplication/vendor/gems/rspec-rails-2.0.0.beta.19/lib/rspec-rails.rb:3
>  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
> `gem_original_require'
>  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
> `require'
>  from 
> /home/Amit/Myworkspace/MyApplication/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in 
> `require'
>  from 
> /home/Amit/Myworkspace/MyApplication/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in 
> `load'
>  from 
> /home/Amit/Myworkspace/MyApplication/config/../vendor/rails/railties/lib/initializer.rb:307:in 
> `load_gems'
>  from 
> /home/Amit/Myworkspace/MyApplication/config/../vendor/rails/railties/lib/initializer.rb:307:in 
> `each'
>   ... 11 levels...
>  from /usr/lib/ruby/gems/1.8/gems/rcov-0.9.8/bin/rcov:511:in `load'
>  from /usr/lib/ruby/gems/1.8/gems/rcov-0.9.8/bin/rcov:511
>  from /usr/bin/rcov:19:in `load'
>  from /usr/bin/rcov:19
> Please help me.

Please show me what  you typed in your config/environment.rb to configure rspec-rails.


More information about the rspec-users mailing list