How do I configure controllers to use requests?

1

After creating a controller a test for the controller is automatically created. You can disable this creation of the test for the controller using the code below:

Rails.application.config.generators do |g|
  g.test_framework :rspec, controller_specs: false
end

Once this is done, the normal would be to create the request manually. Another idea to solve would be to overwrite the controller's generator.

Well, I wonder if there is some sort of configuration that can enable the use of test creation for requestes rather than tests for controllers.

    
asked by anonymous 10.03.2017 / 21:28

0 answers