[DRE-commits] [ruby-descendants-tracker] 04/07: two patches
Cédric Boutillier
boutil at moszumanska.debian.org
Fri Feb 28 14:50:20 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-descendants-tracker.
commit 0d9215dd2601ea7c30060a73f1d30e68a09ecd0c
Author: Cédric Boutillier <boutil at debian.org>
Date: Fri Feb 28 15:40:52 2014 +0100
two patches
---
.../deactivate_missing_shared_examples.patch | 37 ++++++++++++++++++++++
debian/patches/series | 2 ++
debian/patches/spec_helper.patch | 32 +++++++++++++++++++
3 files changed, 71 insertions(+)
diff --git a/debian/patches/deactivate_missing_shared_examples.patch b/debian/patches/deactivate_missing_shared_examples.patch
new file mode 100644
index 0000000..4838427
--- /dev/null
+++ b/debian/patches/deactivate_missing_shared_examples.patch
@@ -0,0 +1,37 @@
+Description: Some shared examples in the specs come from the devtools gem
+ which is not packaged for Debian. Dropping them for the moment
+Forwarded: not-needed
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-02-28
+
+--- a/spec/unit/descendants_tracker/add_descendant_spec.rb
++++ b/spec/unit/descendants_tracker/add_descendant_spec.rb
+@@ -9,7 +9,7 @@
+ let(:object) { Class.new(described_class) }
+ let(:descendant) { Class.new }
+
+- it_should_behave_like 'a command method'
++ #it_should_behave_like 'a command method'
+
+ it 'prepends the class to the descendants' do
+ object.descendants << original = Class.new
+--- a/spec/unit/descendants_tracker/descendants_spec.rb
++++ b/spec/unit/descendants_tracker/descendants_spec.rb
+@@ -9,7 +9,7 @@
+ let(:object) { described_class }
+
+ context 'when there are no descendants' do
+- it_should_behave_like 'an idempotent method'
++ #it_should_behave_like 'an idempotent method'
+
+ it { should be_empty }
+ end
+@@ -17,7 +17,7 @@
+ context 'when there are descendants' do
+ let!(:descendant) { Class.new(object) } # trigger the class inhertance
+
+- it_should_behave_like 'an idempotent method'
++ #it_should_behave_like 'an idempotent method'
+
+ it { should eql([descendant]) }
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..015fcc2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+spec_helper.patch
+deactivate_missing_shared_examples.patch
diff --git a/debian/patches/spec_helper.patch b/debian/patches/spec_helper.patch
new file mode 100644
index 0000000..e6785c0
--- /dev/null
+++ b/debian/patches/spec_helper.patch
@@ -0,0 +1,32 @@
+Description: drop coverage and dependency on devtools from spec_helper
+Forwarded: no
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-02-28
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,24 +1,5 @@
+ # encoding: utf-8
+
+-require 'devtools/spec_helper'
+-
+-if ENV['COVERAGE'] == 'true'
+- require 'simplecov'
+- require 'coveralls'
+-
+- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+- SimpleCov::Formatter::HTMLFormatter,
+- Coveralls::SimpleCov::Formatter
+- ]
+-
+- SimpleCov.start do
+- command_name 'spec:unit'
+- add_filter 'config'
+- add_filter 'spec'
+- minimum_coverage 100
+- end
+-end
+-
+ require 'descendants_tracker'
+
+ # require spec support files and shared behavior
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-descendants-tracker.git
More information about the Pkg-ruby-extras-commits
mailing list