Sha256: c279a59b25e684971448a24dfa8b144b0781a05b73c1d9184aaa395eb5144908
Contents?: true
Size: 615 Bytes
Versions: 6
Compression:
Stored size: 615 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', "#{name.underscore.pluralize}_spec.rb") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems