Sha256: 7e0c145f34b9d3784f268a0fb6b43a6893f42da4e7492c151ea9f7f9105fb48f

Contents?: true

Size: 612 Bytes

Versions: 29

Compression:

Stored size: 612 Bytes

Contents

require 'generators/rspec'

module Rspec
  module Generators
    # @private
    class IntegrationGenerator < Base
      # Add a deprecation for this class, before rspec-rails 4, to use the
      # `RequestGenerator` instead
      class_option :request_specs,
                   :type => :boolean,
                   :default => true,
                   :desc => "Generate request specs"

      def generate_request_spec
        return unless options[:request_specs]

        template 'request_spec.rb',
                 File.join('spec/requests', class_path, "#{table_name}_spec.rb")
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 5 rubygems

Version Path
rspec-rails-3.8.1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.8.0 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.7.2 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.7.1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.7.0 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.6.1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.6.0 lib/generators/rspec/integration/integration_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rspec-rails-3.5.2/lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.6.0.beta2 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.6.0.beta1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.2 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.0 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.0.beta4 lib/generators/rspec/integration/integration_generator.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rspec-rails-3.4.2/lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.0.beta3 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.0.beta2 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.5.0.beta1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.4.2 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.4.1 lib/generators/rspec/integration/integration_generator.rb