[DRE-commits] [ruby-multimap] 01/01: fix syntax for RSpec shared examples groups for newer RSpec versions

Cédric Boutillier boutil at moszumanska.debian.org
Fri Mar 7 09:18:12 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-multimap.

commit 17611e6afc0d0bbf5828d616b77e74b5e4bf49ef
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Mar 7 10:17:46 2014 +0100

    fix syntax for RSpec shared examples groups for newer RSpec versions
---
 .../patches/fix_syntax_for_shared_examples.patch   | 39 ++++++++++++++++++++++
 debian/patches/series                              |  3 +-
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/debian/patches/fix_syntax_for_shared_examples.patch b/debian/patches/fix_syntax_for_shared_examples.patch
new file mode 100644
index 0000000..d13cb70
--- /dev/null
+++ b/debian/patches/fix_syntax_for_shared_examples.patch
@@ -0,0 +1,39 @@
+Description: fix syntax of RSpec shared examples groups
+ to make it work with recent versions of RSpec
+Origin: vendor
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-03-07
+
+--- a/spec/enumerable_examples.rb
++++ b/spec/enumerable_examples.rb
+@@ -1,4 +1,4 @@
+-shared_examples_for Enumerable, Multimap, "with inital values {'a' => [100], 'b' => [200, 300]}" do
++shared_examples_for "Enumerable Multimap with inital values {'a' => [100], 'b' => [200, 300]}" do
+   it "should check all key/value pairs for condition" do
+     @map.all? { |key, value| key =~ /\w/ }.should be_true
+     @map.all? { |key, value| key =~ /\d/ }.should be_false
+--- a/spec/hash_examples.rb
++++ b/spec/hash_examples.rb
+@@ -1,4 +1,4 @@
+-shared_examples_for Hash, Multimap, "with inital values {'a' => [100], 'b' => [200, 300]}" do
++shared_examples "Hash Multimap with inital values {'a' => [100], 'b' => [200, 300]}" do
+   before do
+     @container ||= Array
+   end
+--- a/spec/set_examples.rb
++++ b/spec/set_examples.rb
+@@ -1,4 +1,4 @@
+-shared_examples_for Set do
++shared_examples_for "Set" do
+   it "should create a new set containing the given objects" do
+     Multiset[]
+     Multiset[nil]
+@@ -267,7 +267,7 @@
+   end
+ end
+ 
+-shared_examples_for Set, "with inital values [1, 2]" do
++shared_examples_for "Set with inital values [1, 2]" do
+   it "should add element to set" do
+     @set.add("foo")
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 248e368..8b0069f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
-remove_it_should_behave_like.patch
+#remove_it_should_behave_like.patch
+fix_syntax_for_shared_examples.patch

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



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