]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/steps.rb
added RSpec and RSpec on Rails
[rails.git] / vendor / gems / rspec-1.1.2 / examples / stories / game-of-life / behaviour / stories / steps.rb
diff --git a/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/steps.rb b/vendor/gems/rspec-1.1.2/examples/stories/game-of-life/behaviour/stories/steps.rb
new file mode 100644 (file)
index 0000000..793590d
--- /dev/null
@@ -0,0 +1,5 @@
+steps_for :life do
+  Then "the grid should look like" do |dots|
+    @game.grid.should == Grid.from_string(dots)
+  end
+end
\ No newline at end of file