aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2017-09-25 20:49:19 +0200
committerGitHub <noreply@github.com>2017-09-25 20:49:19 +0200
commit6e61af131d17d3d076a0b000d0d67d6846efc094 (patch)
tree610e4f6b066e4c4096032322fcc4f4f66515c241 /railties/test
parent686168f5cbdf545c97ebe0f69512dc4a35d25abd (diff)
parent229f5361232d66efcc3a77381f0055764540c761 (diff)
downloadrails-6e61af131d17d3d076a0b000d0d67d6846efc094.tar.gz
rails-6e61af131d17d3d076a0b000d0d67d6846efc094.tar.bz2
rails-6e61af131d17d3d076a0b000d0d67d6846efc094.zip
Merge pull request #30700 from y-yagi/respect_quiet_option
Respect quiet option in all process of `rails new` command
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/generators/app_generator_test.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 904e2a5c84..20f593f25c 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -560,6 +560,11 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_no_match(/run git init/, output)
end
+ def test_quiet_option
+ output = run_generator [File.join(destination_root, "myapp"), "--quiet"]
+ assert_empty output
+ end
+
def test_application_name_with_spaces
path = File.join(destination_root, "foo bar")
@@ -737,7 +742,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
sequence = ["git init", "install", "exec spring binstub --all", "echo ran after_bundle"]
@sequence_step ||= 0
- ensure_bundler_first = -> command do
+ ensure_bundler_first = -> command, options = nil do
assert_equal sequence[@sequence_step], command, "commands should be called in sequence #{sequence}"
@sequence_step += 1
end