Hello,
I recently unpacked the latest (1.1.12) rspec and rspec rails in my
applicaiton.
When I run my specs I get:
config.gem: Unpacked gem rspec-1.1.12 in vendor/gems has no
specification file. Run ‘rake gems:refresh_specs’ to fix this.
config.gem: Unpacked gem rspec-rails-1.1.12 in vendor/gems has no
specification file. Run ‘rake gems:refresh_specs’ to fix this.
However, when I do what it says, I get this:
[jschank@serenity shindg (maps)]$ rake gems:refresh_specs
(in /Users/jschank/Projects/Rails/shindg)
config.gem: Unpacked gem rspec-1.1.12 in vendor/gems has no
specification file. Run ‘rake gems:refresh_specs’ to fix this.
config.gem: Unpacked gem rspec-rails-1.1.12 in vendor/gems has no
specification file. Run ‘rake gems:refresh_specs’ to fix this.
rake aborted!
superclass mismatch for class ModelExampleGroup
A google search isn’t helping me. What can I do to make this warning
go away?
besides piping it to dev/null
Hello,
I recently unpacked the latest (1.1.12) rspec and rspec rails in my
applicaiton.
Manually? Or using “rake gems:unpack”?
(in /Users/jschank/Projects/Rails/shindg)
config.gem: Unpacked gem rspec-1.1.12 in vendor/gems has no
specification file. Run ‘rake gems:refresh_specs’ to fix this.
config.gem: Unpacked gem rspec-rails-1.1.12 in vendor/gems has no
specification file. Run ‘rake gems:refresh_specs’ to fix this.
rake aborted!
superclass mismatch for class ModelExampleGroup
A google search isn’t helping me. What can I do to make this warning
go away?
besides piping it to dev/null
What version of rails are you using? I’ve not seen this particular
problem on any of the releases.
The safe bet with rspec right now is manually installing it
vendor/plugins - either by unpacking a gem or checking it out from git
or using ‘script/install’.
I am getting the same error with version 2.2.2; I’m testing out Heroku
right now and am not sure of my ability to install it manually but will
try. I’m not especially experienced with any of this, so if anyone’s got
any tips they’re welcome
A google search isn’t helping me. What can I do to make this warning
go away?
besides piping it to dev/null
Thanks,
John Schank
I had this problem yesterday. Each of my gems in vendor/gems/ was
missing its specification file. I have to assume that this is because
I manually unpacked gems into vendor/gems/ .
I found that “rake gems:refresh_specs” failed to put the specification
file into each frozen gem’s directory because I didn’t have any gem
dependencies setup in environment.rb .
To fix these “has no specification file” warnings, here’s what I did:
Add the following gem dependencies to config/environment.rb :
config.gem ‘rspec’, :version => ‘1.1.12’, :lib => false
config.gem ‘rspec-rails’, :version => ‘1.1.12’, :lib => false
Run “rake gems:refresh_specs”.
Check that each frozen gem has a specification file:
$ ls -l vendor/gems/*/.specification
Comment out the gem dependencies in environment.rb .
I hope that helps!
-Nick
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.