我通常对 bundler Gemfile 选项很清楚,但我不确定为什么 rspec(特别是 rspec-rails)应该同时用于测试和开发。
这是我的测试分组:
group :development, :test do
gem 'rspec-rails'
gem 'faker'
end
group :test do
gem "factory_girl_rails"
gem "capybara"
gem 'guard-rspec'
gem 'rb-fsevent'
gem 'growl'
end
这看起来好吗?