From 9a5a4f81768011d06d0418dd052bba0bc5d3145e Mon Sep 17 00:00:00 2001 From: Paul McKellar Date: Wed, 20 Jun 2012 09:41:49 -0700 Subject: [PATCH] add coverage to repo, add gem dependency --- .gitignore | 1 + Gemfile | 4 ++++ Gemfile.lock | 9 ++++++++- spec/spec_helper.rb | 2 ++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c111b33..e149fbd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.gem +coverage diff --git a/Gemfile b/Gemfile index c77da83..f2f5637 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,7 @@ source :rubygems gemspec gem 'rspec' gem 'colorize' + +group :test do + gem 'simplecov' +end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 6ee3020..09d4950 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,13 +1,15 @@ PATH remote: . specs: - huffshell (0.0.1) + huffshell (0.0.3) + colorize GEM remote: http://rubygems.org/ specs: colorize (0.5.8) diff-lcs (1.1.3) + multi_json (1.2.0) rspec (2.10.0) rspec-core (~> 2.10.0) rspec-expectations (~> 2.10.0) @@ -16,6 +18,10 @@ GEM rspec-expectations (2.10.0) diff-lcs (~> 1.1.3) rspec-mocks (2.10.1) + simplecov (0.6.4) + multi_json (~> 1.0) + simplecov-html (~> 0.5.3) + simplecov-html (0.5.3) PLATFORMS ruby @@ -24,3 +30,4 @@ DEPENDENCIES colorize huffshell! rspec + simplecov diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2bbf4ca..070e1b7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,7 @@ require 'rubygems' require 'bundler/setup' +require 'simplecov' +SimpleCov.start require 'huffshell' # and any other gems you need