GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Ok so I was running rake test:uncommitted on a new generated application and I got the error that no such file to load functional/application_controller_test.rb
One way to fix this is fix the task itself to not include ApplicationController in the list.
But I think we should generate the ApplicationControllerTest file
Generating Test file for ApplicationController
At the time of generating new application
generating test file for ApplicationController
Test added to check ApplicationControllerTest file.
Instead, shouldn't the rake task be smarter and check if the test file exists before running it?
@josevalim Yes that can be a fix. I was simply thinking that as we generate tests for scaffold resource. So a new application can give a empty test file for ApplicationController
I think the rake task should be smarter as well. Close this and go for #3564 instead?
Closing this and favor #3564
Should be checking if file exists or not.
I found this bug when running rake test:uncommitted
on a newly generated rails app which don't have
test file for application_controller.
Can see detail here #3461