Skip to content

appacademy/test-first-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learn Ruby Test-First

Ruby Setup

If you've already set up ruby on your own machine, you may skip this step. Otherwise, please see the advanced setup instructions document.

Setting up the Project

You can download a .zip version of this repository by clicking the "Clone or Download" button in the top right on GitHub. Open the directory in your favorite text editor (we recommend Atom) and run your commands at the command line.

Using These Exercises

Each exercise has its own spec file in the spec directory. Open the spec file to read the directions. Each exercise will have you modify a corresponding file in the lib directory.

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.

What's happening here? In the root directory of the project, you'll see a file called "Gemfile". This is a manifest of all of the Ruby gems needed to make your project work. bundle install is a command you'll use often to install all of the gems you need to run a program. gem install bundler installs the bundler gem, which is what makes bundle install work. bundle exec rspec simply tells your machine to run the version of RSpec specified in the Gemfile.

Resources

Here is a broad survey of many resources you may find useful. Don't try to read them all! Just browse around when you feel like learning more about Ruby.

Learning Ruby via Tests (and/or Interactively)

Learning Ruby and Programming

Online Ruby References

Other good resources

Credits

  • Concept by Alex Chaffee
  • Exercises by Alex Chaffee, Sarah Allen, Liah Hansen, Kai Middleton
  • Early quality assurance by Sumiki, Dimitri, Liah, Michael, and Brendan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages