Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add guard to project

  • Loading branch information...
commit 2473cb60c9bb100c760386441bc3bd7262323bb6 1 parent 1150635
@Gonzih authored
View
1  .rspec
@@ -0,0 +1 @@
+--color
View
1  Gemfile
@@ -1,2 +1,3 @@
source "http://rubygems.org"
gem 'rspec'
+gem 'guard-rspec', require: false
View
8 Gemfile.lock
@@ -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
9 Guardfile
@@ -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
2  lib/cell.rb
@@ -0,0 +1,2 @@
+class Cell
+end
View
15 spec/lib/cell_spec.rb
@@ -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
3  spec/spec_helper.rb
@@ -0,0 +1,3 @@
+require 'bundler'
+Bundler.require(:default) if defined?(Bundler)
+Dir[File.join(File.dirname(__FILE__),'../lib/**/*.rb')].each {|f| require f}
Please sign in to comment.
Something went wrong with that request. Please try again.