[DRE-commits] [ruby-rubyntlm] 04/04: Adding tests
Balasankar C
balasankarc-guest at moszumanska.debian.org
Sat May 16 13:28:57 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-rubyntlm.
commit 3a419fab7c41f65ec5549cea48b1742db37d0747
Author: Balasankar C <balasankarc at autistici.org>
Date: Sat May 16 18:47:58 2015 +0530
Adding tests
---
debian/patches/series | 1 +
debian/patches/simplecov | 18 ++++++++++++++++++
debian/ruby-tests.rake | 2 +-
3 files changed, 20 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..31f7f63
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,18 @@
+Description: Disable coveralls
+ Disable coveralls 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,10 +1,4 @@
+-require 'simplecov'
+-SimpleCov.start do
+- add_filter '/spec/'
+- add_filter '/config/'
+- add_filter '/vendor/'
+-end if ENV["COVERAGE"]
+-
++require 'pathname'
+ require 'rspec'
+ require 'net/ntlm'
+
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-rubyntlm.git
More information about the Pkg-ruby-extras-commits
mailing list