describe Cell do Given(:cell) { cell = Cell.new } context "with 0 neighbors" do Then { cell.lives?(0) == false } end context "with 1 neighbor" do Then { cell.lives?(1) == false } end context "with 2 neighbors" do Then { cell.lives?(2) == true } end context "with 3 neighbors" do Then { cell.lives?(3) == true } end context "with 4 neighbors" do Then { cell.lives?(4).should be_false } end end