Coding as a Craft Bootcamp Prep - v2.0
  • Introduction
  • Week 1 - Programming Basics - Ruby
    • Understanding the problem statement
    • User stories
    • Pair programming
    • The ATM challenge
      • Step 1 - Setting the stage
      • Step 2 - The core functionality
      • Step 3 - Interacting with objects
      • Step 4 - Refactoring
      • Step 5 - Testing the sad path
      • Step 6 - Cash is King
      • Step 7 - The Account
      • Step 8 - The Person
      • Step 9 - Making it all work together
    • Library Challenge
      • Important Topics
    • Extras
    • RSpec
      • RSpec introduction
      • Install and configure
      • RSpec Basics
      • How to write specs
      • So many Expectations...
      • Matchers
  • Week 2 -Programming Basics - JavaScript
  • Week 3 - TypeScript and Angular
  • Week 4 - Ruby on Rails Basics
  • Week 5 - Working With Legacy Code
  • Week 6 - Midcourse Project
  • Week 7 - Going Mobile
  • Week 8 & 9 - Advanced SaaS Applications
  • Week 10 - Expose and Consume API's
  • Configuring RSpec
Powered by GitBook
On this page
  1. Week 1 - Programming Basics - Ruby
  2. RSpec

Install and configure

We have covered how to install RSpec in detail during the prep course, so we will keep this short.

There are two ways of installing RSpec, You either run gem install rspec in your terminal and then rspec --init in your terminal in order for it to create all config file .rspec and spec_helper.rb

The second way is to add the rspec gem to your Gemfile, run bundle in your terminal and rspec --init once rspec, is installed.

In order to configure RSpec you can run rspec --help in the terminal and it will provide you wit a lot of options that you can use in the .rspec file to configure your output from when the test suites run.

PreviousRSpec introductionNextRSpec Basics

Last updated 7 years ago