Sha256: d22c2fb601659adfe8a5fa3f7e53faa73b03c69e40642f52062e934f89583a09

Contents?: true

Size: 389 Bytes

Versions: 44

Compression:

Stored size: 389 Bytes

Contents

require 'generators/rspec'

module Rspec
  module Generators
    # @private
    class HelperGenerator < Base
      class_option :helper_specs, :type => :boolean, :default => true

      def generate_helper_spec
        return unless options[:helper_specs]

        template 'helper_spec.rb', File.join('spec/helpers', class_path, "#{file_name}_helper_spec.rb")
      end
    end
  end
end

Version data entries

44 entries across 43 versions & 5 rubygems

Version Path
rspec-rails-3.9.1 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-4.0.0.beta3 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.8.3 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.9.0 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-4.0.0.beta2 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.8.2 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.8.1 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.8.0 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.7.2 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.7.1 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.7.0 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.6.1 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.6.0 lib/generators/rspec/helper/helper_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rspec-rails-3.5.2/lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.6.0.beta2 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.6.0.beta1 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.5.2 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.5.1 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.5.0 lib/generators/rspec/helper/helper_generator.rb
rspec-rails-3.5.0.beta4 lib/generators/rspec/helper/helper_generator.rb