Sha256: 78207c1d30bc7ec39942420b813571eab146a4af7dab3b9db7e7f534842ac1a1

Contents?: true

Size: 1.12 KB

Versions: 54

Compression:

Stored size: 1.12 KB

Contents

require File.join(File.dirname(__FILE__), *%w[helper])

Story "I can create a cell",
  %(As a game producer
    I want to create a cell
    So that I can show the grid to people), :steps_for => :life do
  
  Scenario "nothing to see here" do
    Given "a game with dimensions", 3, 3 do |rows,cols|
      @game = Game.new(rows,cols)
    end
    
    Then "the grid should look like", %(
      ...
      ...
      ...
    )
  end
  
  Scenario "all on its lonesome" do
    Given "a game with dimensions", 2, 2
    When "I create a cell at", 1, 1 do |row,col|
      @game.create_at(row,col)
    end
    Then "the grid should look like", %(
      ..
      .X
    )
  end
  
  Scenario "the grid has three cells" do
    Given "a game with dimensions", 3, 3
    When "I create a cell at", 0, 0
    When "I create a cell at", 0, 1
    When "I create a cell at", 2, 2
    Then "the grid should look like", %(
      XX.
      ...
      ..X
    )
  end
  
  Scenario "more cells more more" do
    GivenScenario "the grid has three cells"
    When "I create a cell at", 2, 0
    Then "the grid should look like", %(
      XX.
      ...
      X.X
    )
  end
end

Version data entries

54 entries across 54 versions & 9 rubygems

Version Path
dchelimsky-rspec-1.1.10 examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.0.99 app_generators/picolena/templates/vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.1.1 rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.1.0 rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.1.3 rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.1.4 rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.1.2 rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
picolena-0.1.5 rails_plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
pictrails-0.5.0 vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb
radiant-0.6.5.1 vendor/plugins/rspec/examples/stories/game-of-life/behaviour/stories/create_a_cell.rb