[DRE-commits] [ruby-multi-xml] 04/05: patch for Rspec3 support (Closes: #794272)

Jonas Genannt genannt at moszumanska.debian.org
Sun Aug 16 14:38:40 UTC 2015


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

genannt pushed a commit to branch master
in repository ruby-multi-xml.

commit 4a3e0016205e9ffb9ad501836b1b4a206a97dcb9
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Sun Aug 16 16:38:41 2015 +0200

    patch for Rspec3 support (Closes: #794272)
---
 debian/patches/rspec3.patch | 59 +++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series       |  1 +
 2 files changed, 60 insertions(+)

diff --git a/debian/patches/rspec3.patch b/debian/patches/rspec3.patch
new file mode 100644
index 0000000..f4b4dca
--- /dev/null
+++ b/debian/patches/rspec3.patch
@@ -0,0 +1,59 @@
+From a4ae6aa9810ab44634df977f9d0d37efb785c45c Mon Sep 17 00:00:00 2001
+From: Erik Michaels-Ober <sferik at gmail.com>
+Date: Sat, 9 Nov 2013 07:29:35 -0500
+Subject: [PATCH] Prepare for rspec 3.0
+Bug: https://github.com/sferik/multi_xml/commit/a4ae6aa9810ab44634df977f9d0d37efb785c45c
+
+---
+ spec/parser_shared_example.rb | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/spec/parser_shared_example.rb b/spec/parser_shared_example.rb
+index 82d1645..f3dbd00 100644
+--- a/spec/parser_shared_example.rb
++++ b/spec/parser_shared_example.rb
+@@ -145,7 +145,7 @@
+           context "when #{boolean}" do
+             it "returns #{boolean}" do
+               xml = "<tag type=\"boolean\">#{boolean}</tag>"
+-              expect(MultiXml.parse(xml)['tag']).to instance_eval("be_#{boolean}")
++              expect(MultiXml.parse(xml)['tag']).to be instance_eval(boolean)
+             end
+           end
+         end
+@@ -156,7 +156,7 @@
+           end
+ 
+           it "returns true" do
+-            expect(MultiXml.parse(@xml)['tag']).to be_true
++            expect(MultiXml.parse(@xml)['tag']).to be true
+           end
+         end
+ 
+@@ -166,7 +166,7 @@
+           end
+ 
+           it "returns false" do
+-            expect(MultiXml.parse(@xml)['tag']).to be_false
++            expect(MultiXml.parse(@xml)['tag']).to be false
+           end
+         end
+       end
+@@ -428,7 +428,7 @@
+           end
+ 
+           it "returns nil" do
+-            expect(MultiXml.parse(@xml)['tag']).to be_nil
++            expect(MultiXml.parse(@xml)['tag']).to be nil
+           end
+         end
+       end
+@@ -444,7 +444,7 @@
+           end
+ 
+           it "returns nil when the type is allowed" do
+-            expect(MultiXml.parse(@xml, :disallowed_types => [])['tag']).to be_nil
++            expect(MultiXml.parse(@xml, :disallowed_types => [])['tag']).to be nil
+           end
+         end
+       end
diff --git a/debian/patches/series b/debian/patches/series
index 93f0321..df73c76 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 remove-simplecov.patch
+rspec3.patch

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



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