Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ericmeyer/conways_game_of_life_surrogate

This is a Ruby implementation of Conway's Game of Life with versions of the tests using both RSpec dynamic mocks and Surrogate mocks.
https://github.com/ericmeyer/conways_game_of_life_surrogate

Last synced: 23 days ago
JSON representation

This is a Ruby implementation of Conway's Game of Life with versions of the tests using both RSpec dynamic mocks and Surrogate mocks.

Awesome Lists containing this project

README

        

# Conway's Game of Life

This is an implementation of Conway's Game of Life created on the Global Day of Code Retreat. It is meant to provide an example migration to using the Surrogate gem from using RSpec dynamic mocks. The code was originally implemented using RSpec, and afterwards converted to using Surrogate.

Surrogate can be found [here](https://github.com/JoshCheek/surrogate)

## The Blogs

The examples in this code are explained in a series of blogs. You can find the blogs providing detailed instructions here:

* [Migrating to Surrogate - Part 1](http://blog.8thlight.com/eric-meyer/2013/01/13/migrating_from_rspec_dynamic_mocks_to_surrogate_part1.html)
* [Migrating to Surrogate - Part 2](http://blog.8thlight.com/eric-meyer/2013/01/13/migrating_from_rspec_dynamic_mocks_to_surrogate_part2.html)

## master Branch

The master branch uses Surrogate.

## rspec_dynamic_mocks Branch

The rspec_dynamic_mocks branch has the code as it was using RSpec dynamic mocks.