© Greg Donald 2024
G. DonaldHands-on Test-Driven Developmenthttps://doi.org/10.1007/978-1-4842-9748-3_3

3. Getting Started with Ruby

Greg Donald1  
(1)
Clarksville, TN, USA
 
In this chapter, we’ll install tools we can use to manage our installed Ruby versions. We will issue commands to our local operating system via the command-line interface1 (CLI) using a shell interpreter, which depending on your operating system is likely to be bash or zsh. On macOS, we can use the Terminal application to issue these commands, and similar programs are available on other operating systems:
  1. 1.

    Homebrew

     
  2. 2.

    rbenv

     
  3. 3.

    Ruby

     

Installing Homebrew

On macOS, I use Homebrew2 to install most of my local software development stack. There’s a shell command on the Homebrew ...

Get Hands-on Test-Driven Development: Using Ruby, Ruby on Rails, and RSpec now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.