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