We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f50d63 commit b3a16b6Copy full SHA for b3a16b6
railties/test/generators_test.rb
@@ -34,6 +34,12 @@ def test_generator_suggestions
34
assert_match "Maybe you meant 'migration'", output
35
end
36
37
+ def test_generator_multiple_suggestions
38
+ name = :tas
39
+ output = capture(:stdout){ Rails::Generators.invoke name }
40
+ assert_match "Maybe you meant 'task', 'job' or 'assets'", output
41
+ end
42
+
43
def test_help_when_a_generator_with_required_arguments_is_invoked_without_arguments
44
output = capture(:stdout){ Rails::Generators.invoke :model, [] }
45
assert_match(/Description:/, output)
0 commit comments