1
0
Fork 0
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:
yuuji.yaginuma 2017-03-08 12:28:00 +09:00
parent 9b84567fd4
commit 841dddaf26

View file

@ -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