Permalink
Browse files

add guard to project

  • Loading branch information...
Gonzih committed Feb 13, 2012
1 parent 1150635 commit 2473cb60c9bb100c760386441bc3bd7262323bb6
Showing with 39 additions and 0 deletions.
  1. +1 −0 .rspec
  2. +1 −0 Gemfile
  3. +8 −0 Gemfile.lock
  4. +9 −0 Guardfile
  5. +2 −0 lib/cell.rb
  6. +15 −0 spec/lib/cell_spec.rb
  7. +3 −0 spec/spec_helper.rb
View
1 .rspec
@@ -0,0 +1 @@
+--color
View
@@ -1,2 +1,3 @@
source "http://rubygems.org"
gem 'rspec'
+gem 'guard-rspec', require: false
View
@@ -2,6 +2,12 @@ GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.3)
+ ffi (1.0.11)
+ guard (1.0.0)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-rspec (0.6.0)
+ guard (>= 0.10.0)
rspec (2.8.0)
rspec-core (~> 2.8.0)
rspec-expectations (~> 2.8.0)
@@ -10,9 +16,11 @@ GEM
rspec-expectations (2.8.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.8.0)
+ thor (0.14.6)
PLATFORMS
ruby
DEPENDENCIES
+ guard-rspec
rspec
View
@@ -0,0 +1,9 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'rspec', version: 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
+
View
@@ -0,0 +1,2 @@
+class Cell
+end
View
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+describe 'Cell' do
+ describe 'Rule #1: Any live cell with fewer than two live neighbours dies, as if caused by under-population.' do
+ end
+
+ describe 'Rule #2: Any live cell with two or three live neighbours lives on to the next generation.' do
+ end
+
+ describe 'Rule #3: Any live cell with more than three live neighbours dies, as if by overcrowding.' do
+ end
+
+ describe 'Rule #4: Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.' do
+ end
+end
View
@@ -0,0 +1,3 @@
+require 'bundler'
+Bundler.require(:default) if defined?(Bundler)
+Dir[File.join(File.dirname(__FILE__),'../lib/**/*.rb')].each {|f| require f}

0 comments on commit 2473cb6

Please sign in to comment.