You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

Update: I now have a very detailed step-by-step tutorial for setting up a proper Ruby development environment on a Mac, including a Homebrew troubleshooting section with the most common issues people run into. Although my step-by-step tutorial is guaranteed to work, I also have a script that will save you a lot of time. My tutorial uses a … Read more

You don’t have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user)

below is what I need to do. To run the specs, you’ll need to install RSpec. First, run gem install bundler in the root directory of your project. Then, run bundle install. To run a single spec file, run a command like this: bundle exec rspec spec/00_hello_spec.rb. To run all of the specs at once, run bundle exec rspec. So, … Read more