Permalink
Browse files

Moved to simplecov instead of rcov for Ruby 1.9.x.

  • Loading branch information...
1 parent 785c1c4 commit d148513e963110f406a850d3dba886847d49d46a @bouchard committed Sep 1, 2011
Showing with 12 additions and 16 deletions.
  1. +1 −0 .gitignore
  2. +5 −5 Gemfile
  3. +2 −9 Rakefile
  4. +1 −1 VERSION
  5. +2 −0 test/{helper.rb → test_helper.rb}
  6. +1 −1 test/test_thumbs_up.rb
View
@@ -1,3 +1,4 @@
*.gem
pkg/*
Gemfile.lock
+coverage/
View
10 Gemfile
@@ -1,13 +1,13 @@
source :rubygems
-gem 'activerecord', '3.0.3'
+gem 'activerecord'
group :development do
- gem "bundler", "~> 1.0.0"
- gem "jeweler", "~> 1.5.2"
- gem "rcov", ">= 0"
+ gem 'bundler'
+ gem 'jeweler'
+ gem 'simplecov'
end
group :test do
- gem 'sqlite3-ruby', '1.3.2'
+ gem 'sqlite3'
end
View
@@ -26,18 +26,11 @@ Jeweler::RubygemsDotOrgTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
+ test.test_files = Dir.glob("test/**/*_test.rb")
test.verbose = true
end
-require 'rcov/rcovtask'
-Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
-
-require 'rake/rdoctask'
+require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
View
@@ -1 +1 @@
-0.4.1
+0.4.2
@@ -1,3 +1,5 @@
+require 'simplecov'
+SimpleCov.start
require 'test/unit'
$LOAD_PATH.unshift(File.dirname(__FILE__))
View
@@ -1,4 +1,4 @@
-require 'helper'
+require File.join(File.expand_path(File.dirname(__FILE__)), 'test_helper')
class TestThumbsUp < Test::Unit::TestCase
def setup

0 comments on commit d148513

Please sign in to comment.