aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Gemfile6
-rw-r--r--Gemfile.lock7
-rw-r--r--spec/spec_helper.rb4
4 files changed, 15 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 55f1de2b3..cc3e0cd16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,4 @@ public/assets/
chouette2.war
vendor/bundle
.ruby-version
+coverage
diff --git a/Gemfile b/Gemfile
index 1674d9a34..9f04c6c5d 100644
--- a/Gemfile
+++ b/Gemfile
@@ -131,15 +131,15 @@ gem 'apartment', "~> 1.0.0"
gem 'newrelic_rpm'
group :development do
- gem 'capistrano', '2.13.5'
+ gem 'capistrano', '2.13.5'
gem 'capistrano-ext'
gem 'guard'
gem 'guard-rspec'
gem 'rails-erd'
gem 'meta_request'
gem 'letter_opener'
- gem 'quiet_assets', '~> 1.0'
-
+ gem 'quiet_assets', '~> 1.0'
+ gem 'simplecov', '~> 0.10.0'
platforms :ruby_20, :ruby_21, :ruby_22 do
gem 'better_errors'
gem 'binding_of_caller'
diff --git a/Gemfile.lock b/Gemfile.lock
index 54d781fd3..abf2f19c2 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -118,6 +118,7 @@ GEM
actionmailer (>= 3.2.6, < 5)
devise (>= 3.2.0)
diff-lcs (1.2.5)
+ docile (1.1.5)
dr-ffi-proj4 (0.0.3)
ffi (>= 1.0.0)
enumerize (0.10.1)
@@ -401,6 +402,11 @@ GEM
simple_form (3.1.0)
actionpack (~> 4.0)
activemodel (~> 4.0)
+ simplecov (0.10.0)
+ docile (~> 1.1.0)
+ json (~> 1.8)
+ simplecov-html (~> 0.10.0)
+ simplecov-html (0.10.0)
slop (3.6.0)
spoon (0.0.4)
ffi
@@ -547,6 +553,7 @@ DEPENDENCIES
sawyer (~> 0.6.0)
sdoc (~> 0.4.0)
simple_form (~> 3.1.0)
+ simplecov (~> 0.10.0)
spring
sqlite3
squeel
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 4af9e445c..92afd410b 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -11,6 +11,10 @@ require 'capybara/poltergeist'
require 'georuby-ext'
require 'will_paginate/array'
require 'fakeweb'
+require 'simplecov'
+SimpleCov.start 'rails' do
+ add_filter "/.bundle"
+end
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are