From the course: Ruby: Testing with RSpec

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Installing Ruby and RubyGems

Installing Ruby and RubyGems - Ruby Tutorial

From the course: Ruby: Testing with RSpec

Start my 1-month free trial

Installing Ruby and RubyGems

- In this chapter we'll learn to install and configure RSpec. Beginning with making sure that you have Ruby and RubyGems installed because RSpec depends on them. In order to use RSpec, you'll need to have Ruby 1.87 or higher; that's gonna be required. Ruby 2.0 or higher is going to be recommended. Now, if you have an older version of Ruby don't worry, you'll be fine using that. It works just fine. The main thing you gain out of newer versions of Ruby is that Ruby runs faster. There have been performance improvements, and faster Ruby means faster tests. The best way to find out to install Ruby is to go to the Ruby language website. That's ruby-lang.org/en/installation. Let's go there now. So, on the installing Ruby page, you'll see that you can pick the different operating systems you have, and the different ways that you can install it using different installers or software managers. You can scan through those to figure out which one is most appropriate for you. And then it will walk…

Contents