提交 1e9d6e7b 编写于 作者: J Jeremy Kemper

Revert "Install binstubs by default"

This reverts commit f34c27a4.

We'll be taking a different tack on this with new `bundle binstubs <gem>` support.
上级 a79300a0
......@@ -261,7 +261,7 @@ def bundle_command(command)
end
def run_bundle
bundle_command('install --binstubs') unless options[:skip_gemfile] || options[:skip_bundle] || options[:pretend]
bundle_command('install') unless options[:skip_gemfile] || options[:skip_bundle] || options[:pretend]
end
def empty_directory_with_keep_file(destination, config = {})
......
......@@ -27,7 +27,7 @@ def test_skeleton_is_created
end
def test_generation_runs_bundle_install
generator([destination_root]).expects(:bundle_command).with('install --binstubs').once
generator([destination_root]).expects(:bundle_command).with('install').once
quietly { generator.invoke_all }
end
......@@ -101,14 +101,14 @@ def test_template_is_executed_when_supplied_an_https_path
end
def test_dev_option
generator([destination_root], dev: true).expects(:bundle_command).with('install --binstubs').once
generator([destination_root], dev: true).expects(:bundle_command).with('install').once
quietly { generator.invoke_all }
rails_path = File.expand_path('../../..', Rails.root)
assert_file 'Gemfile', /^gem\s+["']rails["'],\s+path:\s+["']#{Regexp.escape(rails_path)}["']$/
end
def test_edge_option
generator([destination_root], edge: true).expects(:bundle_command).with('install --binstubs').once
generator([destination_root], edge: true).expects(:bundle_command).with('install').once
quietly { generator.invoke_all }
assert_file 'Gemfile', %r{^gem\s+["']rails["'],\s+github:\s+["']#{Regexp.escape("rails/rails")}["']$}
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册