Month: August 2019

Setting Up a Basic Unit Test with RSpec

RSpec is probably the most widely used testing tool for Ruby. I think at one point in time it was the most-used Ruby gem in the world, and it might still be. It even supports Rails and other frameworks. Its syntax is incredibly easy to understand, and anyone trying...
Read More

The Ruby File Class

I recently completed a take home code challenge that involved picking a random word from a .txt file. My first reaction upon reading the requirements was, ‘ok, that’ll be easy.’ I started doing some Ruby stuff, created a class, initialized some variables, and then I got to the part...
Read More