Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add rcov to rspec

  • Loading branch information...
commit 1c170549b3f34376a7d10a615fa060b7f1898b56 1 parent 594b899
Erik Kastman authored
View
2  Gemfile.lock
@@ -11,6 +11,7 @@ GEM
rake
narray (0.5.9.9)
rake (0.8.7)
+ rcov (0.9.9)
rspec (2.4.0)
rspec-core (~> 2.4.0)
rspec-expectations (~> 2.4.0)
@@ -27,4 +28,5 @@ DEPENDENCIES
mocha
narray
nifti!
+ rcov
rspec
View
16 Rakefile
@@ -1,2 +1,18 @@
require 'bundler'
Bundler::GemHelper.install_tasks
+
+begin
+
+ require 'rspec'
+ require 'rspec/core/rake_task'
+
+
+ desc "Run RSpec code examples"
+ RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rcov = true
+ t.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/,features\/}
+ end
+
+rescue LoadError => e
+ puts e
+end
View
1  nifti.gemspec
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec"
s.add_development_dependency "mocha"
s.add_development_dependency "narray"
+ s.add_development_dependency "rcov"
end
View
1  spec/custom_matchers.rb
@@ -1,3 +1,4 @@
+require 'rspec'
require 'digest/md5'
# Source: Matt Wynne; https://gist.github.com/736421
Please sign in to comment.
Something went wrong with that request. Please try again.