From 841dddaf26e496c4aaa43dcc2338da193aeffd4b Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 8 Mar 2017 12:28:00 +0900 Subject: Use appropriate type in generators test This fixes the following thor's warning. ``` Expected string default value for '--generate'; got false (boolean) ``` --- railties/test/generators_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3