[DRE-commits] [ruby-omniauth-gitlab] 03/04: Fixing tests

Balasankar C balasankarc-guest at moszumanska.debian.org
Sat May 16 11:35:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-omniauth-gitlab.

commit 356b3f5e7fefb7036aa2082707c5ef38405f03ad
Author: Balasankar C <balasankarc at autistici.org>
Date:   Sat May 16 17:02:17 2015 +0530

    Fixing tests
---
 debian/patches/series    |  1 +
 debian/patches/simplecov | 14 ++++++++++++++
 debian/ruby-tests.rake   |  2 +-
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f958273
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+simplecov
diff --git a/debian/patches/simplecov b/debian/patches/simplecov
new file mode 100644
index 0000000..e1f97a7
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,14 @@
+Description: Disable coveralls
+ Disable coveralls during tests.
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,7 +1,5 @@
+ $:.unshift File.expand_path('..', __FILE__)
+ $:.unshift File.expand_path('../../lib', __FILE__)
+-require 'simplecov'
+-SimpleCov.start
+ require 'rspec'
+ require 'rspec/its'
+ require 'rack/test'
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 99987ae..dcc1601 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,7 +1,7 @@
 require 'rspec/core/rake_task'
 
 RSpec::Core::RakeTask.new(:spec) do |spec|
-  spec.pattern = './spec/*_spec.rb'
+  spec.pattern = './spec/**/*_spec.rb'
 end
 
 task :default => :spec

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-omniauth-gitlab.git



More information about the Pkg-ruby-extras-commits mailing list