diff --git a/spec/conway_game_of_life_spec.cr b/spec/conway_game_of_life_spec.cr index c9b84a7..405e46e 100644 --- a/spec/conway_game_of_life_spec.cr +++ b/spec/conway_game_of_life_spec.cr @@ -1,9 +1,11 @@ require "./spec_helper" describe ConwayGameOfLife do - # TODO: Write tests - - it "works" do - false.should eq(true) + context "respects first law: any live cell with fewer than two live neighbours dies, as if caused by under-population" do + context 'cell with no live neighbours' do + it 'should be dead' do + expect(cell).to be_dead + end + end end end