[DRE-commits] [ruby-buff-shell-out] 03/03: Patch for specs

Hleb Valoshka tsfgnu-guest at moszumanska.debian.org
Thu Jul 30 10:34:51 UTC 2015


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

tsfgnu-guest pushed a commit to branch master
in repository ruby-buff-shell-out.

commit 315e4e1cd1563b951ac6f4208ea958d358cc0e74
Author: Hleb Valoshka <375gnu at gmail.com>
Date:   Thu Jul 30 12:44:29 2015 +0300

    Patch for specs
---
 debian/patches/0001-Fix-specs.patch | 39 +++++++++++++++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 40 insertions(+)

diff --git a/debian/patches/0001-Fix-specs.patch b/debian/patches/0001-Fix-specs.patch
new file mode 100644
index 0000000..5caa0c9
--- /dev/null
+++ b/debian/patches/0001-Fix-specs.patch
@@ -0,0 +1,39 @@
+From: Hleb Valoshka <375gnu at gmail.com>
+Date: Thu, 30 Jul 2015 12:44:15 +0300
+Subject: Fix specs
+
+  * update syntax for rspec3
+  * require rspec/its
+  * don't change $LOAD_PATH
+---
+ spec/buff/shell_out_spec.rb | 4 ++--
+ spec/spec_helper.rb         | 3 +--
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/spec/buff/shell_out_spec.rb b/spec/buff/shell_out_spec.rb
+index 948b81a..d596d47 100644
+--- a/spec/buff/shell_out_spec.rb
++++ b/spec/buff/shell_out_spec.rb
+@@ -13,8 +13,8 @@ describe Buff::ShellOut do
+     its(:stdout) { should be_a(String) }
+     its(:stderr) { should be_a(String) }
+     its(:exitstatus) { should be_a(Fixnum) }
+-    its(:success?) { should be_true }
+-    its(:error?) { should be_false }
++    its(:success?) { should be_truthy }
++    its(:error?) { should be_falsey }
+ 
+     context "when on MRI" do
+       before { described_class.stub(jruby?: false) }
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index ff1247a..a6cc897 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,6 +1,5 @@
+-$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+-
+ require 'rspec'
++require 'rspec/its'
+ require 'buff/ruby_engine'
+ 
+ def setup_rspec
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1bf0881
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-specs.patch

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



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