Just a heads up about a bug related to configuring the rspec gems in
your rails 2.1.1 projects:
I had a little crack at this, but I got scared off as there seems to
be some chicken-and-egg stuff going on. My rake tasks require rspec,
but if rspec gem isn’t installed yet, the rake environment won’t load
and I can’t run rake gems:install.
Since you’re using the gem based one, require ‘rubygems’ before
require ‘spec’ should work.
I was bitten several time by RubyGems dependencies that I just try to
avoid them, the more explicit you are, the better
–
Luis L.
AREA 17
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams
to be some
chicken-and-egg stuff going on. My rake tasks require rspec, but if
rspec
gem isn’t installed yet, the rake environment won’t load and I
can’t run
rake gems:install.
Am I doing something dumb?
Did you updated the generate rake tasks?
As in script/generate rspec? I think so. Is there some update to the
file dropped into lib/tasks/rspec.rake that fixes this?
Since you’re using the gem based one, require ‘rubygems’ before
require ‘spec’ should work.
But if I’m on a machine that doesn’t have the gems installed (e.g. the
production server)…? What then? We have the gem frozen into vendor
gems, but that doesn’t seem to be enough…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.