rails/rails — Issue #4774: `rails new --pretend` runs `bundle install`
Author: rfletcher
Created: 2012-01-31 04:06:13+00:00
State: open

Rails 3.2.1

Generating a new app with `rails new --pretend` executes `bundle install` and causes the error "Could not locate Gemfile":

$ rails new foo --pretend
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
...(edited for length)...
create vendor/plugins
create vendor/plugins/.gitkeep
run bundle install
Could not locate Gemfile

Technically `--pretend`'s description of "not making any changes" is still correct, since `bundle install` has no effect when a Gemfile isn't present, but the command should probably be skipped when `--pretend` is supplied.