lib/generators/rspec/controller/controller_generator.rb in rspec-rails-2.0.0.a5 vs lib/generators/rspec/controller/controller_generator.rb in rspec-rails-2.0.0.a6
- old
+ new
@@ -4,10 +4,10 @@
module Generators
class ControllerGenerator < Base
argument :actions, :type => :array, :default => [], :banner => "action action"
class_option :template_engine, :desc => "Template engine to generate view files"
- class_option :controllers, :type => :boolean, :default => false
+ class_option :controllers, :type => :boolean, :default => true
class_option :views, :type => :boolean, :default => false
def create_controller_files
return unless options[:controllers]