[DRE-commits] [hiera] 03/03: d/p/rspec3.patch: added patch for rspec3
Jonas Genannt
genannt at moszumanska.debian.org
Sat Aug 15 18:33:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
genannt pushed a commit to branch master
in repository hiera.
commit ea82532cdefa1c5f6369a0aa8e7956acf3b71372
Author: Jonas Genannt <jonas at brachium-system.net>
Date: Sat Aug 15 20:33:59 2015 +0200
d/p/rspec3.patch: added patch for rspec3
---
debian/patches/rspec3.patch | 30 ++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 31 insertions(+)
diff --git a/debian/patches/rspec3.patch b/debian/patches/rspec3.patch
new file mode 100644
index 0000000..88119e9
--- /dev/null
+++ b/debian/patches/rspec3.patch
@@ -0,0 +1,30 @@
+Author: Jonas Genannt <genannt at debian.org>
+Description: fix unit tests for rspec3
+Forwarded: yes
+Bug: https://github.com/puppetlabs/hiera/pull/288
+
+--- a/spec/unit/util_spec.rb
++++ b/spec/unit/util_spec.rb
+@@ -4,19 +4,19 @@
+ describe 'Hiera::Util.posix?' do
+ it 'should return true on posix systems' do
+ Etc.expects(:getpwuid).with(0).returns(true)
+- Hiera::Util.posix?.should be_true
++ Hiera::Util.posix?.should be_truthy
+ end
+
+ it 'should return false on non posix systems' do
+ Etc.expects(:getpwuid).with(0).returns(nil)
+- Hiera::Util.posix?.should be_false
++ Hiera::Util.posix?.should be_falsey
+ end
+ end
+
+ describe 'Hiera::Util.microsoft_windows?' do
+ it 'should return false on posix systems' do
+ Hiera::Util.expects(:file_alt_separator).returns(nil)
+- Hiera::Util.microsoft_windows?.should be_false
++ Hiera::Util.microsoft_windows?.should be_falsey
+ end
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a47c924
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+rspec3.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/hiera.git
More information about the Pkg-ruby-extras-commits
mailing list