[DRE-commits] [ruby-omniauth-multipassword] 04/04: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Mon May 18 16:09:25 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-multipassword.

commit 2192efe757fa8bcecfd766b864043a60883aa3ad
Author: Balasankar C <balasankarc at autistici.org>
Date:   Mon May 18 21:36:06 2015 +0530

    Make tests run
---
 debian/patches/series    |  1 +
 debian/patches/simplecov | 22 ++++++++++++++++++++++
 debian/ruby-tests.rake   |  2 +-
 3 files changed, 24 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..eff20b7
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,22 @@
+Description: Disable simplecov
+ Disable simplecov while running tests.
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,15 +1,4 @@
+ require 'rspec'
+-require 'simplecov'
+-
+-if ENV['CI'] || (defined?(:RUBY_ENGINE) && RUBY_ENGINE != 'rbx')
+-  begin
+-    require 'codeclimate-test-reporter'
+-    CodeClimate::TestReporter.start
+-  rescue LoadError
+-  end
+-  SimpleCov.start
+-end
+-
+ require 'omniauth-multipassword'
+ 
+ Dir[File.expand_path('spec/support/**/*.rb')].each {|f| require f }
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-multipassword.git



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