Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added simple_cov for test coverage

  • Loading branch information...
commit 28edb2d0a6580f0052f2ac1509bfc5743d70078e 1 parent df04148
@NoamB authored
View
1  Gemfile
@@ -15,4 +15,5 @@ group :development do
gem "cucumber", ">= 0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.5.2"
+ gem 'simplecov', '>= 0.3.8', :require => false # Will install simplecov-html as a dependency
end
View
4 Gemfile.lock
@@ -102,6 +102,9 @@ GEM
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.4)
archive-tar-minitar (>= 0.5.2)
+ simplecov (0.3.9)
+ simplecov-html (>= 0.3.7)
+ simplecov-html (0.3.9)
sqlite3-ruby (1.3.2)
term-ansicolor (1.0.5)
thor (0.14.6)
@@ -121,5 +124,6 @@ DEPENDENCIES
rspec (~> 2.3.0)
rspec-rails
ruby-debug19
+ simplecov (>= 0.3.8)
sqlite3-ruby
yard (~> 0.6.0)
View
1  spec/Gemfile
@@ -7,4 +7,5 @@ group :development do
gem 'bcrypt-ruby', :require => 'bcrypt'
gem 'rspec'
gem 'ruby-debug19'
+ gem 'simplecov', '>= 0.3.8', :require => false # Will install simplecov-html as a dependency
end
View
4 spec/Gemfile.lock
@@ -88,6 +88,9 @@ GEM
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.4)
archive-tar-minitar (>= 0.5.2)
+ simplecov (0.3.9)
+ simplecov-html (>= 0.3.7)
+ simplecov-html (0.3.9)
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
@@ -102,3 +105,4 @@ DEPENDENCIES
rspec
ruby-debug19
simple_auth (= 0.1.0)!
+ simplecov (>= 0.3.8)
View
1  spec/rails3/Gemfile
@@ -8,4 +8,5 @@ group :development do
gem 'rspec'
gem 'rspec-rails'
gem 'ruby-debug19'
+ gem 'simplecov', '>= 0.3.8', :require => false # Will install simplecov-html as a dependency
end
View
4 spec/rails3/Gemfile.lock
@@ -92,6 +92,9 @@ GEM
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.4)
archive-tar-minitar (>= 0.5.2)
+ simplecov (0.3.9)
+ simplecov-html (>= 0.3.7)
+ simplecov-html (0.3.9)
sqlite3-ruby (1.3.2)
thor (0.14.6)
treetop (1.4.9)
@@ -107,4 +110,5 @@ DEPENDENCIES
rspec-rails
ruby-debug19
simple_auth (= 0.1.0)!
+ simplecov (>= 0.3.8)
sqlite3-ruby
View
15 spec/rails3/spec_helper.rb
@@ -1,4 +1,17 @@
-$: << File.join(File.dirname(__FILE__), "/../lib" )
+$: << File.join(File.dirname(__FILE__), '..', '..', 'lib' )
+
+require 'simplecov'
+SimpleCov.root File.join(File.dirname(__FILE__), "app_root" )
+SimpleCov.start do
+ add_filter "/config/"
+
+ add_group 'Controllers', 'app/controllers'
+ add_group 'Models', 'app/models'
+ add_group 'Helpers', 'app/helpers'
+ add_group 'Libraries', 'lib'
+ add_group 'Plugins', 'vendor/plugins'
+ add_group 'Migrations', 'db/migrate'
+end
# Set the default environment to sqlite3's in_memory database
ENV['RAILS_ENV'] ||= 'in_memory'
View
0  spec/simple_auth_spec.rb → spec/simple_auth_crypto_providers_spec.rb
File renamed without changes
View
5 spec/spec_helper.rb
@@ -1,6 +1,11 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
+require 'simplecov'
+SimpleCov.root File.join(File.dirname(__FILE__), '..', 'lib')
+SimpleCov.start
+
+
require 'rspec'
require 'simple_auth'
Please sign in to comment.
Something went wrong with that request. Please try again.