diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-05-17 18:29:20 -0400 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-05-17 18:29:20 -0400 |
commit | 0a070a2444a5e2167e208c0b327af37d757ef70a (patch) | |
tree | 3e2d4217dabdfd86088f5af3388be250a847253c /railties/test | |
parent | a898df66e4b640b5f8faa73e1fc04f9eba278a38 (diff) | |
download | rails-0a070a2444a5e2167e208c0b327af37d757ef70a.tar.gz rails-0a070a2444a5e2167e208c0b327af37d757ef70a.tar.bz2 rails-0a070a2444a5e2167e208c0b327af37d757ef70a.zip |
Run bundle install once when using plugin_new --full --mountable. Closes #555
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 2af728e766..297ac5d238 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -95,6 +95,11 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase assert_file "test/dummy/config/database.yml", /postgres/ end + def test_generation_runs_bundle_install_with_full_and_mountable + result = run_generator [destination_root, "--mountable", "--full"] + assert_equal 1, result.scan("Your bundle is complete").size + end + def test_skipping_javascripts_without_mountable_option run_generator assert_no_file "app/assets/javascripts/application.js" |