I am trying to unpack rspec 1.2.2 and rspec-rails 1.2.2 into my
application.
I have them included in the test.rb environment file with config.gem
options
as described on the Rspec github site.
I can unpack rspec-rails without issue, but when I try to do rspec
nothing
happens. I mean that literally, it does nothing. No warnings, no
errors
and the gem is not in the vendor/gems folder. I tried running --trace
and
it was no help.
You probably have an old version of lib/tasks/rspec.rake, which
requires ‘spec’ (the new one only does so when you try to run a spec
task). Try removing that first, then unpack, then “script/generate
rspec” to regenerate the new rake file.
Thanks for the advice. I had run the updated generator, but it must
have
been reverted at some point. I did it again and followed your
instructions,
but I am experiencing the same problem. I suspect that some of the
custom
code we have that is using rspec is getting in the way. If I can find
out
what it is I will let you know. Thanks!
Peer A.
Development Team Lead, e-Business
CanadaDrugs.com
24 Terracon Place
Winnipeg, MB, Canada
R2J 4G7
Thanks for the advice. I had run the updated generator, but it must have
been reverted at some point. I did it again and followed your instructions,
but I am experiencing the same problem. I suspect that some of the custom
code we have that is using rspec is getting in the way. If I can find out
what it is I will let you know. Thanks!
OK - just a hint - look for any rake files or files that they require
that require ‘spec’ in them.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.