diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-06-25 06:57:11 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-08-31 20:51:37 +0200 |
commit | 414158805fe9ffed253c7afc665b573c0ba3c6be (patch) | |
tree | e30a4f299c226284c53c293c39c57b2d603e974b /railties/test/generators/plugin_new_generator_test.rb | |
parent | 85098e4b31263b04200cb9ac8406c9b2a38cce35 (diff) | |
download | rails-414158805fe9ffed253c7afc665b573c0ba3c6be.tar.gz rails-414158805fe9ffed253c7afc665b573c0ba3c6be.tar.bz2 rails-414158805fe9ffed253c7afc665b573c0ba3c6be.zip |
Revert "Revert changes related to `bundle install` fixes in `rails new`"
The cause of the previous revert was bug in bundler that made it hard to
make railties test work. Fix for bundler was recently pushed to github,
so now we can safely get back to the original commit.
This reverts commit 0f5cc34ab58cda99d1401ecc82e1ebb873838dd7.
Diffstat (limited to 'railties/test/generators/plugin_new_generator_test.rb')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 6c3e0178f2..bfb20dad2d 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -115,7 +115,13 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase end def test_generation_runs_bundle_install_with_full_and_mountable - result = run_generator [destination_root, "--mountable", "--full"] + result = run_generator [destination_root, "--mountable", "--full", "--dev"] + assert_file "#{destination_root}/Gemfile.lock" do |contents| + assert_match(/bukkits/, contents) + end + assert_match(/run bundle install/, result) + assert_match(/Using bukkits \(0\.0\.1\)/, result) + assert_match(/Your bundle is complete/, result) assert_equal 1, result.scan("Your bundle is complete").size end @@ -394,4 +400,3 @@ protected silence(:stdout){ generator.send(*args, &block) } end end - |