Since I’ve upgraded to snow leopard I’ve been having tons of problems using cucumber to run my features.
Currently, every time I run cucumber I get the following error.
Missing these required gems: webrat
cucumber >= 0.3.100 webrat >=
0.5.0 rspec >= 1.2.6 rspec-rails >= 1.2.6You’re running: 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.1Run
rake gems:installto install the
missing gems.
All these gems are installed (and reinstalled after snow leopard upgrade).
How many Ruby installations do you have going on? I notice you have a custom Ruby 1.9 installation. My bet is that your gem path is confused, or that you’re running a different Ruby than you think you are in different contexts.
Run both
which rubyandwhich gemand make sure they’re both coming from the same place. Then try runninggem envand confirm that the directories it gives for your gem path are the ones where your gems are installed. If you’re using Passenger, confirm that the config files in your Apache setup contain the right Ruby path, and then check whatever programs you use to invoke your tests (rake, autotest, whatever) and make sure they’re running the same Ruby.