Sha256: b6815bf30ad6ac0c9c3c1f697b0c88699f65e90bf31d29f69ac3bdeb4903bc42
Contents?: true
Size: 565 Bytes
Versions: 54
Compression:
Stored size: 565 Bytes
Contents
require File.join(File.dirname(__FILE__), *%w[helper]) Story 'I can kill a cell', %(As a game producer I want to kill a cell So that when I make a mistake I don't have to start again), :steps_for => :life do Scenario "bang, you're dead" do Given 'a game that looks like', %( XX. .X. ..X ) do |dots| @game = Game.from_string dots end When 'I destroy the cell at', 0, 1 do |row,col| @game.destroy_at(row,col) end Then 'the grid should look like', %( X.. .X. ..X ) end end
Version data entries
54 entries across 54 versions & 9 rubygems