mausconi / learn_ruby_rspec

a basic ruby class generated from test-first-teaching

Home Page:http://testfirst.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://testfirst.org


Languages

Language:Ruby 100.0%