Skip to content

bitmakerlabs/learn_ruby_rspec

 
 

Repository files navigation

Learn Ruby

originally forked from https://github.com/alexch/learn_ruby

Getting started

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.

Running the tests

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

About

a basic ruby class generated from test-first-teaching

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%