spec/support/generators/question/question_generator.rb in genspec-0.3.0 vs spec/support/generators/question/question_generator.rb in genspec-0.3.1
- old
+ new
@@ -1,5 +1,5 @@
-base = defined?(Rails) ? Rails::Generators::Base : Thor::Group
+base = GenSpec.rails? ? Rails::Generators::Base : Thor::Group
class Question < base
include Thor::Actions
include CustomActions