[DRE-commits] [ruby-aruba] 35/74: Run skip_invoke on scenario

Hideki Yamane henrich at moszumanska.debian.org
Sat Nov 28 01:16:36 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 fe7ce90eceee231b807aace384604d45a7afcdc4
Author: Dennis Günnewig <dg1 at ratiodata.de>
Date:   Wed Nov 25 11:35:25 2015 +0100

    Run skip_invoke on scenario
---
 features/step_definitions/hooks.rb | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/features/step_definitions/hooks.rb b/features/step_definitions/hooks.rb
index 1faeef7..db50207 100644
--- a/features/step_definitions/hooks.rb
+++ b/features/step_definitions/hooks.rb
@@ -1,95 +1,95 @@
 require 'cucumber/platform'
 
-Before '@requires-ruby-version-193' do
+Before '@requires-ruby-version-193' do |scenario|
   next if RUBY_VERSION >= '1.9.3'
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@requires-ruby-version-19' do
+Before '@requires-ruby-version-19' do |scenario|
   next if RUBY_VERSION >= '1.9'
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@requires-ruby-version-2' do
+Before '@requires-ruby-version-2' do |scenario|
   next if RUBY_VERSION >= '2'
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@requires-aruba-version-1' do
+Before '@requires-aruba-version-1' do |scenario|
   next if Aruba::VERSION > '1'
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@requires-ruby-platform-java' do
+Before '@requires-ruby-platform-java' do |scenario|
   # leave if java
   next if RUBY_PLATFORM.include? 'java'
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@requires-ruby-platform-mri' do
+Before '@requires-ruby-platform-mri' do |scenario|
   # leave if not java
   next unless RUBY_PLATFORM.include? 'java'
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@unsupported-on-platform-windows' do
+Before '@unsupported-on-platform-windows' do |scenario|
   # leave if not windows
   next unless FFI::Platform.windows?
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@unsupported-on-platform-unix' do
+Before '@unsupported-on-platform-unix' do |scenario|
   # leave if not windows
   next unless FFI::Platform.unix?
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end
 end
 
-Before '@unsupported-on-platform-mac' do
+Before '@unsupported-on-platform-mac' do |scenario|
   # leave if not windows
   next unless FFI::Platform.mac?
 
   if Cucumber::VERSION < '2'
-    skip_invoke!
+    scenario.skip_invoke!
   else
     skip_this_scenario
   end

-- 
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