Test ALL your static pages in rails with one simple test
14-Jan-2021 1189
A great friend of mine (who also happens to be a great rails developer) once told me a great trick to increase your code coverage easily. You can just write a test to check if all your GET routes return a non-errored code.Indeed, the most important information to check about our static GET pages is to know if they are currently erroring or not. So a quick test to check if those pages are working or not is a great low-hanging fruit.
Test ALL your static pages in rails with one simple test #ruby #rubydeveloper #rubyonrails #static #pages #rails #simple #test https://rubyonrails.ba/link/test-all-your-static-pages-in-rails-with-one-simple-test