[DRE-commits] [ruby-aruba] 40/74: No need to check this

Hideki Yamane henrich at moszumanska.debian.org
Sat Nov 28 01:16:38 UTC 2015


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

henrich pushed a commit to branch debian/sid
in repository ruby-aruba.

commit cd32e2ad1a1ed9c7346adebec6480de07cb8976b
Author: Dennis Günnewig <dg1 at ratiodata.de>
Date:   Thu Nov 26 09:43:55 2015 +0100

    No need to check this
---
 lib/aruba/matchers/command/have_exit_status.rb      | 2 +-
 lib/aruba/matchers/command/have_finished_in_time.rb | 2 +-
 lib/aruba/matchers/command/have_output_on_stderr.rb | 2 +-
 lib/aruba/matchers/command/have_output_on_stdout.rb | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/aruba/matchers/command/have_exit_status.rb b/lib/aruba/matchers/command/have_exit_status.rb
index 05d9db6..211af3c 100644
--- a/lib/aruba/matchers/command/have_exit_status.rb
+++ b/lib/aruba/matchers/command/have_exit_status.rb
@@ -20,7 +20,7 @@ RSpec::Matchers.define :have_exit_status do |expected|
   match do |actual|
     @old_actual = actual
 
-    @old_actual.stop unless @old_actual.stopped?
+    @old_actual.stop
     @actual = actual.exit_status
 
     next false unless @old_actual.respond_to? :exit_status
diff --git a/lib/aruba/matchers/command/have_finished_in_time.rb b/lib/aruba/matchers/command/have_finished_in_time.rb
index e02bd21..10d15fb 100644
--- a/lib/aruba/matchers/command/have_finished_in_time.rb
+++ b/lib/aruba/matchers/command/have_finished_in_time.rb
@@ -26,7 +26,7 @@ RSpec::Matchers.define :have_finished_in_time do
 
     next false unless @old_actual.respond_to? :timed_out?
 
-    @old_actual.stop unless @old_actual.stopped?
+    @old_actual.stop
 
     @old_actual.timed_out? == false
   end
diff --git a/lib/aruba/matchers/command/have_output_on_stderr.rb b/lib/aruba/matchers/command/have_output_on_stderr.rb
index 2bb846d..88c5da6 100644
--- a/lib/aruba/matchers/command/have_output_on_stderr.rb
+++ b/lib/aruba/matchers/command/have_output_on_stderr.rb
@@ -19,7 +19,7 @@ RSpec::Matchers.define :have_output_on_stderr do |expected|
 
     next false unless @old_actual.respond_to? :stderr
 
-    @old_actual.stop unless @old_actual.stopped?
+    @old_actual.stop
 
     @actual = sanitize_text(actual.stderr)
 
diff --git a/lib/aruba/matchers/command/have_output_on_stdout.rb b/lib/aruba/matchers/command/have_output_on_stdout.rb
index 7f70e5f..eb93bc4 100644
--- a/lib/aruba/matchers/command/have_output_on_stdout.rb
+++ b/lib/aruba/matchers/command/have_output_on_stdout.rb
@@ -19,7 +19,7 @@ RSpec::Matchers.define :have_output_on_stdout do |expected|
 
     next false unless @old_actual.respond_to? :stdout
 
-    @old_actual.stop unless @old_actual.stopped?
+    @old_actual.stop
 
     @actual = sanitize_text(actual.stdout)
 

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



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