Safe is an example of BDD in Ruby using Cucumber and RSpec. It implements a safe using user stories to define the behaviors and interactions. The safe has a six digit display, a number pad for the digits 0-9 and open, new pin and lock buttons.
Run git clone https://github.com/bivory/Safe.git
to clone the repository. Follow the installation steps in the following sections to setup the dependencies.
gem install bundler
to install Bundler.
Run the bundle
command in the root directory to install the dependencies.
brew install ruby
(2.0.0) using Homebrew.
gem install bundler
to install Bundler.
Run the bundle
command in the root directory to install the dependencies.
Runing the command cucumber
in the root directory will run all specification tests.
Copyright © 2013 Bryan Ivory
Distributed under the Eclipse Public License.