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.4.0 lib/generators/rspec/integration/integration_generator.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rspec-rails-3.3.3/lib/generators/rspec/integration/integration_generator.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rspec-rails-3.3.2/lib/generators/rspec/integration/integration_generator.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rspec-rails-3.3.2/lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.3.3 lib/generators/rspec/integration/integration_generator.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rspec-rails-3.3.2/lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.3.2 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.3.1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.3.0 lib/generators/rspec/integration/integration_generator.rb