originally forked from https://github.com/alexch/learn_ruby
Since this project has a Gemfile
, you can run bundler
to install all the required gems!
Start by installing the bundler gem:
$ gem install bundler
Since Bundler installs a new command line command, you'll need to the following command to get it all working with rbenv
.
$ rbenv rehash
Now you're ready to run Bundler and install all your project gem dependencies.
$ bundle install
This should install all the gems you need.
Once you're done, run
$ rbenv rehash
again.
Each directory represents a small project and to run the tests you'll need to be in that directory. For example, to try the first assignment, you'll cd
into it.
$ cd 00_hello
Once you're in the mini project directory, you can type the following to run the whole test suite.
$ rake
or to run individual test files, you could also use the rspec
command followed by the file name.
$ rspec hello_spec.rb