concept generator in category ruby

appears as: generators, generator, generators, A generator
Rails 4 in Action: Revised Edition of Rails 3 in Action

This is an excerpt from Manning's book Rails 4 in Action: Revised Edition of Rails 3 in Action.

This group in your Gemfile lists all the gems that will be loaded in the development and test environments of your application. These gems won’t be available in a production environment. You add rspec-rails to this group because you’re going to need a generator from it to be available in development. Additionally, when you run a generator for a controller or model, it’ll use RSpec, rather than the default Test::Unit, to generate the tests for that class.

Rails 3 in Action

This is an excerpt from Manning's book Rails 3 in Action.

In the Gemfile, you specify that you wish to use the latest 2.x release of RSpec in the test and development groups. You put this gem inside the development group because without it, the tasks you can use to run your specs will be unavailable. Additionally, when you run a generator for a controller or model, it’ll use RSpec, rather than the default Test::Unit, to generate the tests for that class.