mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use appropriate type in generators test
This fixes the following thor's warning. ``` Expected string default value for '--generate'; got false (boolean) ```
This commit is contained in:
parent
9b84567fd4
commit
841dddaf26
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ class GeneratorsTest < Rails::Generators::TestCase
|
|||
|
||||
self.class.class_eval(<<-end_eval, __FILE__, __LINE__ + 1)
|
||||
class WithOptionsGenerator < Rails::Generators::Base
|
||||
class_option :generate, :default => true
|
||||
class_option :generate, default: true, type: :boolean
|
||||
end
|
||||
end_eval
|
||||
|
||||
|
|
Loading…
Reference in a new issue