lib/generators/rspec/request/request_generator.rb
require 'generators/rspec' module Rspec module Generators # @private class RequestGenerator < 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', target_path('requests', "#{name.underscore.pluralize}_spec.rb") end end end end
Source Files
- lib/generators/rspec.rb
- lib/generators/rspec/channel/channel_generator.rb
- lib/generators/rspec/controller/controller_generator.rb
- lib/generators/rspec/controller/templates/controller_spec.rb
- lib/generators/rspec/controller/templates/request_spec.rb
- lib/generators/rspec/controller/templates/routing_spec.rb
- lib/generators/rspec/controller/templates/view_spec.rb
- lib/generators/rspec/feature/feature_generator.rb
- lib/generators/rspec/feature/templates/feature_singular_spec.rb
- lib/generators/rspec/feature/templates/feature_spec.rb
- lib/generators/rspec/generator/generator_generator.rb
- lib/generators/rspec/generator/templates/generator_spec.rb
- lib/generators/rspec/helper/helper_generator.rb
- lib/generators/rspec/helper/templates/helper_spec.rb
- lib/generators/rspec/install/install_generator.rb
- lib/generators/rspec/install/templates/spec/rails_helper.rb
- lib/generators/rspec/integration/integration_generator.rb
- lib/generators/rspec/job/job_generator.rb
- lib/generators/rspec/mailbox/mailbox_generator.rb
- lib/generators/rspec/mailer/mailer_generator.rb
- lib/generators/rspec/mailer/templates/mailer_spec.rb
- lib/generators/rspec/mailer/templates/preview.rb
- lib/generators/rspec/model/model_generator.rb
- lib/generators/rspec/model/templates/model_spec.rb
- lib/generators/rspec/request/request_generator.rb
- lib/generators/rspec/request/templates/request_spec.rb
- lib/generators/rspec/scaffold/scaffold_generator.rb
- lib/generators/rspec/scaffold/templates/api_controller_spec.rb
- lib/generators/rspec/scaffold/templates/api_request_spec.rb
- lib/generators/rspec/scaffold/templates/controller_spec.rb
- lib/generators/rspec/scaffold/templates/edit_spec.rb
- lib/generators/rspec/scaffold/templates/index_spec.rb
- lib/generators/rspec/scaffold/templates/new_spec.rb
- lib/generators/rspec/scaffold/templates/request_spec.rb
- lib/generators/rspec/scaffold/templates/routing_spec.rb
- lib/generators/rspec/scaffold/templates/show_spec.rb
- lib/generators/rspec/system/system_generator.rb
- lib/generators/rspec/system/templates/system_spec.rb
- lib/generators/rspec/view/templates/view_spec.rb
- lib/generators/rspec/view/view_generator.rb
- lib/rspec-rails.rb
- lib/rspec/rails.rb
- lib/rspec/rails/active_record.rb
- lib/rspec/rails/adapters.rb
- lib/rspec/rails/configuration.rb
- lib/rspec/rails/example.rb
- lib/rspec/rails/example/channel_example_group.rb
- lib/rspec/rails/example/controller_example_group.rb
- lib/rspec/rails/example/feature_example_group.rb
- lib/rspec/rails/example/helper_example_group.rb
- lib/rspec/rails/example/job_example_group.rb
- lib/rspec/rails/example/mailbox_example_group.rb
- lib/rspec/rails/example/mailer_example_group.rb
- lib/rspec/rails/example/model_example_group.rb
- lib/rspec/rails/example/rails_example_group.rb
- lib/rspec/rails/example/request_example_group.rb
- lib/rspec/rails/example/routing_example_group.rb
- lib/rspec/rails/example/system_example_group.rb
- lib/rspec/rails/example/view_example_group.rb
- lib/rspec/rails/extensions.rb
- lib/rspec/rails/extensions/active_record/proxy.rb
- lib/rspec/rails/feature_check.rb
- lib/rspec/rails/file_fixture_support.rb
- lib/rspec/rails/fixture_file_upload_support.rb
- lib/rspec/rails/fixture_support.rb
- lib/rspec/rails/matchers.rb
- lib/rspec/rails/matchers/action_cable.rb
- lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb
- lib/rspec/rails/matchers/action_cable/have_streams.rb
- lib/rspec/rails/matchers/action_mailbox.rb
- lib/rspec/rails/matchers/active_job.rb
- lib/rspec/rails/matchers/base_matcher.rb
- lib/rspec/rails/matchers/be_a_new.rb
- lib/rspec/rails/matchers/be_new_record.rb
- lib/rspec/rails/matchers/be_valid.rb
- lib/rspec/rails/matchers/have_enqueued_mail.rb
- lib/rspec/rails/matchers/have_http_status.rb
- lib/rspec/rails/matchers/have_rendered.rb
- lib/rspec/rails/matchers/redirect_to.rb
- lib/rspec/rails/matchers/relation_match_array.rb
- lib/rspec/rails/matchers/routing_matchers.rb
- lib/rspec/rails/vendor/capybara.rb
- lib/rspec/rails/version.rb
- lib/rspec/rails/view_assigns.rb
- lib/rspec/rails/view_path_builder.rb
- lib/rspec/rails/view_rendering.rb
- lib/rspec/rails/view_spec_methods.rb