Git Product home page Git Product logo

test-first-ruby's Introduction

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

test-first-ruby's People

Contributors

akingabramson avatar alexch avatar cjavdev avatar dallashall avatar madrev avatar mkevins avatar nchaffee avatar rglassett avatar ruggeri avatar vveleva avatar wolverdude avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.