From the course: Ruby: Testing with RSpec
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Installing RSpec - Ruby Tutorial
From the course: Ruby: Testing with RSpec
Installing RSpec
- In this movie, we'll install RSpec. The first thing you needed to know about installing RSpec is that you must use Rspec v3 or higher. A lot has changed since RSpec v2 and you should not consider them interchangeable. For this training, you will definitely need to be using RSpec v3 or something later. The best resource for finding out information about RSpec, is from their GitHub page, github.com/rspec/rspec. The organization is called RSpec and the software is called RSpec That's where you'll find the open-source code for RSpec as well as links to all the documentation. Installing RSpec is quite easy once we have RubyGems installed. We just type gem install rspec. It actually is going to install five gems for us. RSpec, RSpec Core, RSpec Expectations, RSpec Mocks and RSpec Support. We'll see that in just a moment. But all of those gems work together under the umbrella of RSpec. Once we have it installed from the command line, we can type rspec --version, to find out which version…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.