Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.448 kb
require 'generators/rspec'
module Rspec
module Generators
# @private
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
Jump to Line
Something went wrong with that request. Please try again.