aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-12-28 14:23:01 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-12-28 14:23:01 -0700
commit1e9d6e7b567c778baa884e7e569e67cdf5040119 (patch)
tree44b0c19a40a601511fa6a7738e6507366ca8defc /railties/test/generators
parenta79300a0d80940b457a5065803486526d6bf89a1 (diff)
downloadrails-1e9d6e7b567c778baa884e7e569e67cdf5040119.tar.gz
rails-1e9d6e7b567c778baa884e7e569e67cdf5040119.tar.bz2
rails-1e9d6e7b567c778baa884e7e569e67cdf5040119.zip
Revert "Install binstubs by default"
This reverts commit f34c27a452418d8aa17f92bb0fd7ae97b5f7e252. We'll be taking a different tack on this with new `bundle binstubs <gem>` support.
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/shared_generator_tests.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb
index df34612574..1e5a4545a1 100644
--- a/railties/test/generators/shared_generator_tests.rb
+++ b/railties/test/generators/shared_generator_tests.rb
@@ -27,7 +27,7 @@ module SharedGeneratorTests
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 @@ module SharedGeneratorTests
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