How to test static sites with RSpec, Capybara, and Webkit
06-Mar-2020 1544
Automated tests are not only good for dynamic code. You can (and probably should) test your static web sites as well. Here is an example of me testing the Fedora Developer website using Ruby, RSpec and Capybara.First, let’s briefly stress out why the testing is really needed. Fedora Developer is statically built with Jekyll and the content itself is created by many contributors. As you can imagine, things can break pretty easily. It’s one thing to test the layout and things you are in control of, but another when you want to make sure that people are creating new content as expected.
How to test static sites with RSpec, Capybara, and Webkit #ruby #rubydeveloper #rubyonrails #static #sites #RSpec, #Capybara, #Webkit #rspec, #test #webkit https://rubyonrails.ba/link/how-to-test-static-sites-with-rspec-capybara-and-webkit