Tag: RSPEC 8 results found

  • TDD: Mocks and Messages

    Learn about Mocks and how they are similar to a phone tap -- we use TDD with MiniTest mocks to build a design for communication between an engineer and a conductor on a train. We then show RSpec mocks, and how to use RSpec mocks in a MiniTest. ...

  • Blocks: Review

    The block review goes over some aspects of Ruby in a classic teaching method. We don't create an application this week. Instead, I try to formalize some of the aspects and techniques you've been seeing and using in the previous 5 weeks. If you'...

  • Testing 3 Ways (RSpec, MiniTest, Test::Unit)

    This week is a short video -- about 30 minutes long … if you've ever wondered the difference between TestUnit, MiniTest, and RSpec --- watch this week's videos!

  • Blackjack

    We're starting the course off with a well-known game: Blackjack. It's a simple'ish game: 2 cards for the Dealer, 2 cards for the User with the option for more cards, if closest to 21 without going over wins. Of course, if you play blackjack, you ...

  • Introduction to Test Driven Design (TDD)

    Create a Miles to Kilometers calculator using test driven design (TDD). First, we use the RSpec syntax and cover both .should and expect().to syntaxes. Then, we show the same process in MiniTest, and discover the two frameworks are not so diffe...

  • Metaprogramming Terminators

    OK, so if you've heard of Ruby described as "powerful" it's because of the ability to change and morf itself at runtime. We call this "Meta Programming" and is pretty unique. This week, we delve into Meta Programming and try to create a Termina...

  • Pandas, Lions, and Zookeepers

    Create interactions between objects as the Zookeeper must figure out what the Pandas and Lions like to eat! Use mocking, stubbing, and TDD to determine what is correct.

  • SuperFight

    Create a boxing match using TDD. This ambitious episode showcases Test Driven Design, mocking, stubbing, and all the 'ings you can think of! You end up creating a super-fight boxing match where you may win, but you'll be changed forever!


Ruby Off Rails is dedicated to accelerating the mastering of Ruby and increasing developer happiness everywhere.

In my software training, I see two distinct sets of programmers: those who know Ruby, and those who haven’t learned it yet. People who learn Ruby have an easier time understanding Rails, gems, and what magic voodoo is going on. And most importantly, they can cast wicked voodoo themselves.