RSpec examples for a simple Undo/Redo Stack
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
README.md

README.md

What is this?

This is intended as a gentle introduction to TDD/BDD for people who have not experienced it before. The idea is to implement a simple Undo/Redo stack as can be found in any text editor. We all know how those work, so you can focus on letting the tests drive the implementation. This should be a fairly short exercise.

You could start by using your TDD'ed implementation from here. Do that exercise first if you haven't already.

Instructions

  • Fork this project and clone it locally
  • Open up spec/undo_redo_stack_spec.rb
  • Run bundle
  • Run bundle exec rspec --color spec/undo_redo_stack_spec.rb
  • Make tests pass
  • Refactor