views:

23

answers:

1

I know the "group" method is used for specify gems for specific environments.

group :development, :test do
  gem "rspec-rails", ">= 2.0.0.beta.19"
  gem "cucumber-rails", ">= 0.3.2"
  gem "webrat", ">= 0.7.2.beta.1"
end

But I dont get what it means. So these could just be used when im in development and test environment?

But will it be installed in production?

+3  A: 

it mean, you don't need this gem in production. But if you want use test or development mode, you need it.

You can install without some group with bundler like :

bundle install --without= development test

In this case all gem in development and test group are not install and not require.

shingara