Take the 2-minute tour ×

I am new to rails and I having trouble using cucumber to run my tests. I get the following error:

You have already activated activesupport 3.1.0, but your Gemfile requires activesupport 3.1.0.rc8. Consider using bundle exec. (Gem::LoadError)

and my gemfile looks like the following:

source 'http://rubygems.org'

gem 'rails', '3.1.0.rc8'

group :assets do
  gem 'sass-rails', "  ~> 3.1.0.rc"
  gem 'coffee-rails', "~> 3.1.0.rc"
  gem 'uglifier'
gem 'jquery-rails'
gem "therubyracer", ">= 0.8.2"
gem "haml", ">= 3.1.2"
gem "haml-rails", ">= 0.3.4", :group => :development
gem "rspec-rails", ">= 2.6.1", :group => [:development, :test]
gem "guard-rspec"
gem "database_cleaner", ">= 0.6.7", :group => :test
gem "mongoid-rspec", ">= 1.4.4", :group => :test
gem "factory_girl_rails", ">= 1.1.0", :group => :test
gem "cucumber-rails", ">= 1.0.2", :group => :test
gem "capybara", ">= 1.0.1", :group => :test
gem "launchy", ">= 2.0.5", :group => :test
gem "bson_ext", ">= 1.3.1"
gem "mongoid", ">= 2.1.9"
gem 'devise', :git => 'git://github.com/plataformatec/devise.git', :branch => 'master'
gem "frontend-helpers"
gem "rails-footnotes", ">= 3.7", :group => :development
gem "barista"
gem "sunspot"
gem 'sunspot_rails'
gem "sunspot_mongoid"
gem 'vinova_sunspot_mongoid', :require => 'sunspot_mongoid'
gem "fakeweb", "~> 1.3.0"
gem "sunspot_matchers", "~>"

Cucumber used to work before. I recently added sunspot and upgraded to rails 3.1.0.rc8. I don't understand bundle exec message.


share|improve this question
have you tried to run cucumber using bundler? –  lucapette Sep 10 '11 at 17:57
tried 'bundler exec cucumber features' and it worked but why can't I run it from the command 'cucumber features' anymore? –  GTDev Sep 10 '11 at 19:41
Because you have more than one version of rails installed on your machine. It's a problem of dependencies that's exactly what bundler solves :D –  lucapette Sep 10 '11 at 22:19
@lucapette You should probably post this as an answer, so this thread can be closed. :) –  RazokKull Jun 19 '12 at 12:39
@RazokKull Thanks for the suggestion! Done! –  lucapette Jun 19 '12 at 13:41

2 Answers 2

up vote 3 down vote accepted


bundler exec cucumber features

It should work fine. Please see docs for more information.

share|improve this answer

This what worked for me:

bundle exec cucumber features

bundle exec cucumber features/filter_movie_list.feature

The first one for all features, and the second one for certain feature.

share|improve this answer

Your Answer


