spec yoda will

| | Comments (0)
class Bowling
  def hit(pins)
  end

  def score
    0
  end
end

require 'yoda'

Bowling.yoda {
  "score 0 for gutter game".it_will {
    bowling = Bowling.new
    20.times { bowling.hit(0) }

    bowling.score 0.it_is
    bowling.score 42.it_is_not!
  }
}

This is what happens when Aaron Patterson and I hack together. Be afraid. Be very afraid.

Leave a comment

About this Entry

This page contains a single entry by zenspider published on April 24, 2009 12:05 AM.

yoda version 1.0.0 has been released! was the previous entry in this blog.

wilson version 1.1.0 has been released! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.32-en