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
1 changed files with 1 additions and 1 deletions

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