Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

coffeeworks/tdd_ruby_tutorial

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Course - Day 1

Getting Started

git clone git://github.com/coffeeworks/tdd_ruby_tutorial.git
cd tdd_ruby_tutorial
gem install bundler
rvm gemset create curso
rvm gemset use curso
bundle install

Exercise 1

Checkout the spec1 tag

git checkout -b implementation spec1

Implement the methods inside the class Movie in movie.rb according to the spec until it passes

rspec movie_spec.rb

Commit the results

git commit -am "Implementation for spec 1"

Exercise 2

Update to the next version of the specs

git cherry-pick spec2

Implement the new methods and refactor the code until it is all green again

rspec movie_spec.rb

Commit the results

git commit -am "Implementation for spec 2"

Exercise 3

Update to the next version of the specs

git cherry-pick spec3

Implement the new methods and refactor the code until it is all green again

rspec movie_spec.rb

Commit the results

git commit -am "Implementation for spec 3"

Whats next

Continue with Day 2 at https://github.com/coffeeworks/tdd_ruby_tutorial/tree/day2

About

Exercises for learning Ruby in a TDD manner

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.