From 2c5c0690cc5fc324a1b61126dc81ee10e4bf2b29 Mon Sep 17 00:00:00 2001 From: Arthur Neves Date: Tue, 10 Feb 2015 16:22:53 -0500 Subject: Dont check bundler output on plugin generator test --- railties/test/generators/plugin_generator_test.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/railties/test/generators/plugin_generator_test.rb b/railties/test/generators/plugin_generator_test.rb index 39a113f952..a0f244da28 100644 --- a/railties/test/generators/plugin_generator_test.rb +++ b/railties/test/generators/plugin_generator_test.rb @@ -192,13 +192,11 @@ class PluginGeneratorTest < Rails::Generators::TestCase def test_generation_runs_bundle_install_with_full_and_mountable result = run_generator [destination_root, "--mountable", "--full", "--dev"] + assert_match(/run bundle install/, result) + assert $?.success?, "Command failed: #{result}" 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(/Bundle complete!/, result) - assert_equal 1, result.scan("Bundle complete!").size end def test_skipping_javascripts_without_mountable_option -- cgit v1.2.3