File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ def namespaced_path # :doc:
327
327
328
328
# Use Rails default banner.
329
329
def self . banner # :doc:
330
- "rails generate #{ namespace . delete_prefix ( "rails:" ) } #{ arguments . map ( &:usage ) . join ( ' ' ) } [options]" . gsub ( /\s +/ , " " )
330
+ "bin/ rails generate #{ namespace . delete_prefix ( "rails:" ) } #{ arguments . map ( &:usage ) . join ( ' ' ) } [options]" . gsub ( /\s +/ , " " )
331
331
end
332
332
333
333
# Sets the base_name taking into account the current class namespace.
Original file line number Diff line number Diff line change @@ -152,12 +152,12 @@ def test_rails_generators_does_not_show_active_record_hooks
152
152
153
153
def test_default_banner_should_show_generator_namespace
154
154
klass = Rails ::Generators . find_by_namespace ( :foobar )
155
- assert_match ( /^rails generate foobar:foobar/ , klass . banner )
155
+ assert_match ( /^bin \/ rails generate foobar:foobar/ , klass . banner )
156
156
end
157
157
158
158
def test_default_banner_should_not_show_rails_generator_namespace
159
159
klass = Rails ::Generators . find_by_namespace ( :model )
160
- assert_match ( /^rails generate model/ , klass . banner )
160
+ assert_match ( /^bin \/ rails generate model/ , klass . banner )
161
161
end
162
162
163
163
def test_no_color_sets_proper_shell
You can’t perform that action at this time.
0 commit comments