Skip to content
Browse files

made rcov work

  • Loading branch information...
1 parent b7d1ee1 commit 1ce81170bb4b874ae30276ac8d06cdad25f8fdcb @tianyicui committed Oct 27, 2010
Showing with 7 additions and 2 deletions.
  1. +4 −1 Gemfile
  2. +1 −1 Gemfile.lock
  3. +1 −0 Rakefile
  4. +1 −0 spec/catalog_spec.rb
View
5 Gemfile
@@ -1,6 +1,9 @@
source :rubygems
+
gem 'sqlite3-ruby', '>=1.3.1', :require => 'sqlite3'
gem 'treetop', '>=1.4.8'
gem 'rake', '>=0.8.7', :group => :development
-gem 'rspec', '~>2.0', :group => [:development, :test]
gem 'rcov', '>=0.9.8', :group => [:development, :test]
+gem 'rspec', '>=2.0.1', :group => [:development, :test]
+
+# vim: filetype=ruby
View
2 Gemfile.lock
@@ -25,6 +25,6 @@ PLATFORMS
DEPENDENCIES
rake (>= 0.8.7)
rcov (>= 0.9.8)
- rspec (~> 2.0)
+ rspec (>= 2.0.1)
sqlite3-ruby (>= 1.3.1)
treetop (>= 1.4.8)
View
1 Rakefile
@@ -6,6 +6,7 @@ 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 spec/catalog_spec.rb
@@ -1,3 +1,4 @@
+require 'rspec'
require 'minisql'
require 'spec_helper_methods'

0 comments on commit 1ce8117

Please sign in to comment.
Something went wrong with that request. Please try again.