Sha256: 01437bdd73602c1d34a445dc407b42dedc208582e8c4d848289e1332c9ab8e5f

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

require 'generators/rspec'

module Rspec
  module Generators
    class IntegrationGenerator < Base
      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

2 entries across 2 versions & 1 rubygems

Version Path
rspec-rails-3.0.0.rc1 lib/generators/rspec/integration/integration_generator.rb
rspec-rails-3.0.0.beta2 lib/generators/rspec/integration/integration_generator.rb