Permalink
Browse files

Simplecov is simple!

  • Loading branch information...
1 parent 1ce8117 commit 39037afba882d9fa1e69bfb3f0d298b4dddbe366 @tianyicui committed Oct 27, 2010
Showing with 13 additions and 13 deletions.
  1. +1 −1 Gemfile
  2. +4 −2 Gemfile.lock
  3. +0 −6 Rakefile
  4. +1 −2 spec/catalog_spec.rb
  5. +1 −1 spec/database_spec.rb
  6. +1 −1 spec/parser_spec.rb
  7. +5 −0 spec/{spec_helper_methods.rb → spec_helper.rb}
View
@@ -3,7 +3,7 @@ source :rubygems
gem 'sqlite3-ruby', '>=1.3.1', :require => 'sqlite3'
gem 'treetop', '>=1.4.8'
gem 'rake', '>=0.8.7', :group => :development
-gem 'rcov', '>=0.9.8', :group => [:development, :test]
+gem 'simplecov', '>= 0.3.6', :group => [:development, :test], :require => false
gem 'rspec', '>=2.0.1', :group => [:development, :test]
# vim: filetype=ruby
View
@@ -4,7 +4,6 @@ GEM
diff-lcs (1.1.2)
polyglot (0.3.1)
rake (0.8.7)
- rcov (0.9.9)
rspec (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
@@ -15,6 +14,9 @@ GEM
rspec-mocks (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
+ simplecov (0.3.6)
+ simplecov-html (>= 0.3.7)
+ simplecov-html (0.3.8)
sqlite3-ruby (1.3.1)
treetop (1.4.8)
polyglot (>= 0.3.1)
@@ -24,7 +26,7 @@ PLATFORMS
DEPENDENCIES
rake (>= 0.8.7)
- rcov (>= 0.9.8)
rspec (>= 2.0.1)
+ simplecov (>= 0.3.6)
sqlite3-ruby (>= 1.3.1)
treetop (>= 1.4.8)
View
@@ -3,10 +3,4 @@ require 'rspec/core/rake_task'
desc "Run all specs"
RSpec::Core::RakeTask.new('rspec')
-desc "Run all specs with rcov"
-RSpec::Core::RakeTask.new('rcov') do |t|
- t.rcov = true
- t.rcov_opts = %|-Ilib --exclude "gems/*"|
-end
-
task :default => :rspec
View
@@ -1,6 +1,5 @@
-require 'rspec'
+require 'spec_helper'
require 'minisql'
-require 'spec_helper_methods'
describe MiniSQL::Catalog do
View
@@ -1,5 +1,5 @@
+require 'spec_helper'
require 'minisql'
-require 'spec_helper_methods'
describe MiniSQL::Database do
View
@@ -1,5 +1,5 @@
+require 'spec_helper'
require 'minisql/parser'
-require 'spec_helper_methods'
describe MiniSQL::SQLParser do
@@ -1,3 +1,8 @@
+require 'simplecov'
+SimpleCov.start
+
+require 'rspec'
+
module SpecHelperMethods
def init_db

0 comments on commit 39037af

Please sign in to comment.