/Safe

A safe implemented using BDD

Primary LanguageRuby

Safe

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.

Cloning the repository

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.

Ubuntu Installation

gem install bundler to install Bundler. Run the bundle command in the root directory to install the dependencies.

OS X Installation

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.

How to run the tests

Runing the command cucumber in the root directory will run all specification tests.

License

Copyright © 2013 Bryan Ivory

Distributed under the Eclipse Public License.