diff options
author | Michal Papis <mpapis@gmail.com> | 2012-05-15 23:39:19 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-05-15 22:31:08 -0700 |
commit | 5904295b2327f512657a5c44503675807c45ee37 (patch) | |
tree | 4e23508860ec53f3155f3b958be8e2707e53fa85 /railties/test/generators | |
parent | 57d534ee9e441d078fcc161c0c78ebaa5aacd736 (diff) | |
download | rails-5904295b2327f512657a5c44503675807c45ee37.tar.gz rails-5904295b2327f512657a5c44503675807c45ee37.tar.bz2 rails-5904295b2327f512657a5c44503675807c45ee37.zip |
improve #6318
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/plugin_new_generator_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/test/generators/plugin_new_generator_test.rb b/railties/test/generators/plugin_new_generator_test.rb index 51374e5f3f..5524ae9db2 100644 --- a/railties/test/generators/plugin_new_generator_test.rb +++ b/railties/test/generators/plugin_new_generator_test.rb @@ -100,6 +100,12 @@ class PluginNewGeneratorTest < Rails::Generators::TestCase def test_generation_runs_bundle_install_with_full_and_mountable result = run_generator [destination_root, "--mountable", "--full"] + 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 @@ -348,4 +354,3 @@ protected silence(:stdout){ generator.send(*args, &block) } end end - |