[DRE-commits] [ruby-indentation] 03/04: avoid deprecation warnings when running tests.
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Jul 15 01:22:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-indentation.
commit 43949daae25f3e09d65da9791d165285c5f632ea
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Jul 14 22:10:06 2016 -0300
avoid deprecation warnings when running tests.
---
debian/changelog | 2 ++
...helper.rb-explicitly-enable-should-syntax.patch | 23 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 64db1e1..a6412f8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ ruby-indentation (0.1.1-2) UNRELEASED; urgency=medium
- remove debian/ruby-test-files.yaml
* New build makes binary package provide the necessary Rubygems metadata
(Closes: #830094).
+ * 0001-spec-spec_helper.rb-explicitly-enable-should-syntax.patch: avoid
+ deprecation warnings when running tests.
-- Antonio Terceiro <terceiro at debian.org> Thu, 14 Jul 2016 22:00:43 -0300
diff --git a/debian/patches/0001-spec-spec_helper.rb-explicitly-enable-should-syntax.patch b/debian/patches/0001-spec-spec_helper.rb-explicitly-enable-should-syntax.patch
new file mode 100644
index 0000000..2d4b1fb
--- /dev/null
+++ b/debian/patches/0001-spec-spec_helper.rb-explicitly-enable-should-syntax.patch
@@ -0,0 +1,23 @@
+From: Antonio Terceiro <terceiro at debian.org>
+Date: Thu, 14 Jul 2016 22:09:09 -0300
+Subject: spec/spec_helper.rb: explicitly enable should syntax
+
+---
+ spec/spec_helper.rb | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 1f0e3ed..05806f9 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -54,4 +54,8 @@ def time
+ t = Time.now
+ yield
+ Time.now - t
+-end
+\ No newline at end of file
++end
++
++RSpec.configure do |config|
++ config.expect_with(:rspec) { |c| c.syntax = :should }
++end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..12c57ce
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-spec-spec_helper.rb-explicitly-enable-should-syntax.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-indentation.git
More information about the Pkg-ruby-extras-commits
mailing list