Tutorials





Ruby 2.7 introduces numbered parameters as default block parameters
Ruby 2.7 introduces a new way to access block parameters. Ruby 2.7 onwards, if block parameters are obvious and we wish to not use absurd names like n or i etc, we can use numbered parameters which are available inside a block by default.We can us...



How to test static sites with RSpec, Capybara, and Webkit
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 ...
