1 require File.join(File.dirname(__FILE__), *%w[helper])
3 Story "I can create a cell",
5 I want to create a cell
6 So that I can show the grid to people), :steps_for => :life do
8 Scenario "nothing to see here" do
9 Given "a game with dimensions", 3, 3 do |rows,cols|
10 @game = Game.new(rows,cols)
13 Then "the grid should look like", %(
20 Scenario "all on its lonesome" do
21 Given "a game with dimensions", 2, 2
22 When "I create a cell at", 1, 1 do |row,col|
23 @game.create_at(row,col)
25 Then "the grid should look like", %(
31 Scenario "the grid has three cells" do
32 Given "a game with dimensions", 3, 3
33 When "I create a cell at", 0, 0
34 When "I create a cell at", 0, 1
35 When "I create a cell at", 2, 2
36 Then "the grid should look like", %(
43 Scenario "more cells more more" do
44 GivenScenario "the grid has three cells"
45 When "I create a cell at", 2, 0
46 Then "the grid should look like", %(