Snow leopard + cucumber / webrat / rspec
Since I upgraded to snow leopard, I have had a lot of problems using cucumber to run my functions.
Currently, every time I launch a cucumber, I get the following error.
Lack of required gems: webrat
cucumber> = 0.3.100 webrat> = 0.5.0 rspec> = 1.2.6 rspec-rails> = 1.2.6You run: ruby 1.9.1.243 at / usr / local / bin / ruby rubygems 1.3.5 at /Users/nkassis/.gem/ruby/1.9.1, / usr / local / lib / ruby / gems / 1.9.1
Run
rake gems:install
to install missing gems.
All of these gems are installed (and reset after the snow leopard upgrade).
source to share
How many Ruby installations do you have? I noticed that you have custom Ruby 1.9 installed. My bet is that your gem path is confusing, or that you have a different Ruby running than you think you are in different contexts.
Run both which ruby
and which gem
and make sure they both come from the same location. Then try running gem env
and confirm that the directories it gives for your gems path are where your gems are installed. If you are using Passenger, make sure the config files in your Apache setup contain the correct Ruby path, then check what programs you are using to call your tests (rake, autotest, etc.) and make sure they work with the same same Ruby.
source to share