[DRE-commits] [ruby-mixlib-log] 03/06: add path to make spec compatible with rspec 3

Antonio Terceiro terceiro at moszumanska.debian.org
Sat Jun 13 16:14:33 UTC 2015


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

terceiro pushed a commit to branch master
in repository ruby-mixlib-log.

commit 99c40f8822d71ca9cab5063a2c8b545f158becb9
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Jun 12 22:16:46 2015 -0300

    add path to make spec compatible with rspec 3
---
 debian/changelog                                   |  2 ++
 ...-log_spec-make-it-compatible-with-rspec-3.patch | 29 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 32 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 74985da..a2e3b53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ ruby-mixlib-log (1.4.1-2) UNRELEASED; urgency=medium
   * Team upload.
   * Remove old transitional packages (Closes: #735708)
   * update packaging files with `dh-make-ruby --overwrite` + meld
+  * add 0001-log_spec-make-it-compatible-with-rspec-3.patch, which does what
+    it says on the tin.
 
  -- Antonio Terceiro <terceiro at debian.org>  Fri, 12 Jun 2015 19:01:00 -0300
 
diff --git a/debian/patches/0001-log_spec-make-it-compatible-with-rspec-3.patch b/debian/patches/0001-log_spec-make-it-compatible-with-rspec-3.patch
new file mode 100644
index 0000000..d438512
--- /dev/null
+++ b/debian/patches/0001-log_spec-make-it-compatible-with-rspec-3.patch
@@ -0,0 +1,29 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Fri, 12 Jun 2015 22:15:21 -0300
+Subject: log_spec: make it compatible with rspec 3
+
+---
+ spec/mixlib/log_spec.rb | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/spec/mixlib/log_spec.rb b/spec/mixlib/log_spec.rb
+index 1a4a33e..83f90e3 100644
+--- a/spec/mixlib/log_spec.rb
++++ b/spec/mixlib/log_spec.rb
+@@ -132,14 +132,14 @@ describe Mixlib::Log do
+ 
+   it "should default to STDOUT if init is called with no arguments" do
+     logger_mock = Struct.new(:formatter, :level).new
+-    Logger.stub!(:new).and_return(logger_mock)
++    Logger.stub(:new).and_return(logger_mock)
+     Logger.should_receive(:new).with(STDOUT).and_return(logger_mock)
+     Logit.init
+   end
+ 
+   it "should have by default a base log level of warn" do
+     logger_mock = Struct.new(:formatter, :level).new
+-    Logger.stub!(:new).and_return(logger_mock)
++    Logger.stub(:new).and_return(logger_mock)
+     Logit.init
+     Logit.level.should eql(:warn)
+   end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1092b18
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-log_spec-make-it-compatible-with-rspec-3.patch

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



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