diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-03-08 12:28:00 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-03-08 12:28:30 +0900 |
commit | 841dddaf26e496c4aaa43dcc2338da193aeffd4b (patch) | |
tree | 410886d3d2930d828fc7b80f1c34c60a890ee6b7 /railties/test | |
parent | 9b84567fd438acf0e4a973e2be46dce3ba5c6ea0 (diff) | |
download | rails-841dddaf26e496c4aaa43dcc2338da193aeffd4b.tar.gz rails-841dddaf26e496c4aaa43dcc2338da193aeffd4b.tar.bz2 rails-841dddaf26e496c4aaa43dcc2338da193aeffd4b.zip |
Use appropriate type in generators test
This fixes the following thor's warning.
```
Expected string default value for '--generate'; got false (boolean)
```
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/generators_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/generators_test.rb b/railties/test/generators_test.rb index 68ba435393..c3c16b6f86 100644 --- a/railties/test/generators_test.rb +++ b/railties/test/generators_test.rb @@ -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 |