[DRE-commits] [ruby-ice-nine] 04/05: replace remove_it_should_behave_like.patch by require_shared_examples.patch

Cédric Boutillier boutil at moszumanska.debian.org
Sun Jul 5 20:43:38 UTC 2015


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

boutil pushed a commit to annotated tag debian/0.11.1-1
in repository ruby-ice-nine.

commit 74d9caab8be93d32eec4ef37022686f1aa32c724
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sun Jul 5 22:37:52 2015 +0200

    replace remove_it_should_behave_like.patch by require_shared_examples.patch
---
 debian/patches/remove_it_should_behave_like.patch | 23 -----------------------
 debian/patches/require_shared_examples.patch      | 18 ++++++++++++++++++
 debian/patches/series                             |  2 +-
 3 files changed, 19 insertions(+), 24 deletions(-)

diff --git a/debian/patches/remove_it_should_behave_like.patch b/debian/patches/remove_it_should_behave_like.patch
deleted file mode 100644
index df08b86..0000000
--- a/debian/patches/remove_it_should_behave_like.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Description: remove it_should_behave_like because of missing shared examples
-Author: Jonas Genannt <jonas.genannt at capi2name.de>
-Forward: yes
-Bug: https://github.com/dkubb/ice_nine/issues/15
-
---- a/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
-+++ b/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
-@@ -17,5 +17,5 @@
-     end
-   end
- 
--  it_should_behave_like 'IceNine.deep_freeze'
-+  #it_should_behave_like 'IceNine.deep_freeze'
- end
---- a/spec/integration/ice_nine/class_methods/deep_freeze_spec.rb
-+++ b/spec/integration/ice_nine/class_methods/deep_freeze_spec.rb
-@@ -17,5 +17,5 @@
-     end
-   end
- 
--  it_should_behave_like 'IceNine.deep_freeze'
-+  #it_should_behave_like 'IceNine.deep_freeze'
- end
diff --git a/debian/patches/require_shared_examples.patch b/debian/patches/require_shared_examples.patch
new file mode 100644
index 0000000..9f92056
--- /dev/null
+++ b/debian/patches/require_shared_examples.patch
@@ -0,0 +1,18 @@
+Description: Require explicitly the shared examples
+ as recommended in RSpec documentation
+Bug: https://github.com/dkubb/ice_nine/issues/15
+Forward: https://github.com/dkubb/ice_nine/issues/15#issuecomment-118666198
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2015-07-05
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -20,6 +20,8 @@
+   end
+ end
+ 
++Dir.glob("spec/shared/**/*.rb").each { |f| require f }
++
+ require 'ice_nine'
+ 
+ RSpec.configure do |config|
diff --git a/debian/patches/series b/debian/patches/series
index 6b662be..8b879d9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,2 @@
 spec_helper_devtools.patch
-remove_it_should_behave_like.patch
+require_shared_examples.patch

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



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