1require File.join(File.dirname(__FILE__), *%w[helper])
2
3Story 'I can kill a cell',
4 %(As a game producer
5 I want to kill a cell
6 So that when I make a mistake I don't have to start again), :steps_for => :life do
7
8 Scenario "bang, you're dead" do
9
10 Given 'a game that looks like', %(
11 XX.
12 .X.
13 ..X
14 ) do |dots|
15 @game = Game.from_string dots
16 end
17 When 'I destroy the cell at', 0, 1 do |row,col|
18 @game.destroy_at(row,col)
19 end
20 Then 'the grid should look like', %(
21 X..
22 .X.
23 ..X
24 )
25 end
26end