Question: I'm having trouble with setting up RSpec (Ruby) for exercise that I'm supposed to do in Atom. These are the instructions that I was given
I'm having trouble with setting up RSpec (Ruby) for exercise that I'm supposed to do in Atom.
These are the instructions that I was given for RSpec:
"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`."
How do I install RSpec? And when they say to run "x", is that just placing "x" in Atom and clicking command+return? Or am I supposed to put them in Terminal? Also, where are these bundles that they are asking me to run?
I searched the gem install bundler and followed the necessary steps in terminal, yet I got an error. I typed 'gem install bundler', but it told me that I don't have permission for the /Library/Ruby/Gems/2.3.0 directory.
To get perspective on this whole thing: here's the Github page that I got everything from: https://github.com/appacademy/test-first-ruby
I'm having trouble with the "Using These Exercises" section
Please help as soon as you can
Thank you ^__^
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
