lib/generator_spec/main.rb in generator-spec-0.4.8 vs lib/generator_spec/main.rb in generator-spec-0.5.0

- old
+ new

@@ -23,12 +23,12 @@ module FileMatchers end end require_all File.dirname(__FILE__) + '/extensions' -require_all File.dirname(__FILE__) + '/rails_helpers' require_all File.dirname(__FILE__) + '/helpers' +require_all File.dirname(__FILE__) + '/rails_helpers' require_all File.dirname(__FILE__) + '/rspec_generator' module RSpec::Core class ExampleGroup @@ -50,11 +50,13 @@ end end def helpers *types types.each{|type| include_helper type} - end - + end + alias_method :load_helper, :helpers + alias_method :load_helpers, :helpers + protected def include_helper type raise ArgumentError, "Can not specify for #{type}" if ![:migration, :model, :helper, :controller, :view, :observer, :mailer].include?(type) class_eval do