[rspec-users] how to fix 'rake gems:refresh_specs' gems has no specificati
lists at ruby-forum.com
Fri Jul 30 08:47:14 EDT 2010
David Chelimsky wrote:
> On Jul 30, 2010, at 6:52 AM, Amit Jain wrote:
>>>> from /usr/lib/ruby/gems/1.8/gems/rcov-0.9.8/bin/rcov:511
>> config.gem "rspec-rails", :version => ">= 1.3.2"
> OK - so the problem now is that you've got rspec-rails 2.0.0.beta
> installed and that satisfies the ">= 1.3.2" gem requirement, but it only
> works with Rails 3. Try changing that to this:
> config.gem "rspec-rails", :version => "~> 1.3.2"
> The "~>" matches any gem versions that begin with 1.3, so if you later
> upgrade to 1.3.3 it will still work, but it won't match 2.0.0.xxx.
> Also, try running with the "rake spec" command before using rcov, which
> adds complexity to the mix.
Hi After adding
config.gem "rspec-rails", :version => "~> 1.3.2"
line in config/environment.rb file. i am getting such type of error.
[Amit at localhost MyApplication]$ ruby script/server
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
can't activate rspec-rails (= 2.0.0.beta.19, runtime) for , already
activated rspec-rails-1.3.2 for 
Missing these required gems:
rspec-rails ~> 1.3.2
ruby 220.127.116.119 at /usr/bin/ruby
rubygems 1.3.6 at /home/Amit/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8
Run `rake gems:install` to install the missing gems.
I try $ rake gems:install but not install any thing and i also try
[root at localhost MyApplication]# gem uninstall rspec-rails-1.3.2
ERROR: While executing gem ... (Gem::InstallError)
cannot uninstall, check `gem list -d rspec-rails-1.3.2`
[root at localhost MyApplication]# `gem list -d rspec-rails-1.3.2`
[root at localhost MyApplication]#
I don't know about this error and why it is coming.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users