Parent

Files

Class/Module Index [+]

Quicksearch

Rspec::Generators::IntegrationGenerator

Public Instance Methods

generate_request_spec() click to toggle source
# File lib/generators/rspec/integration/integration_generator.rb, line 10
def generate_request_spec
  return unless options[:request_specs]

  template 'request_spec.rb',
           File.join('spec/requests', class_path, "#{table_name}_spec.rb")
end

Protected Instance Methods

webrat?() click to toggle source
# File lib/generators/rspec/integration/integration_generator.rb, line 19
def webrat?
  RSpec.deprecate("the --webrat-matchers option", "--webrat") if options[:webrat_matchers]
  options[:webrat] || options[:webrat_matchers]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.