Sha256: 2d210ed6f3557d0f218487507162012037c086ae8145f861b436a903a21733db

Contents?: true

Size: 1.75 KB

Versions: 12

Compression:

Stored size: 1.75 KB

Contents

require 'cucumber/platform'

Before '@requires-ruby-version-193' do |scenario|
  next if RUBY_VERSION >= '1.9.3'

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@requires-ruby-version-19' do |scenario|
  next if RUBY_VERSION >= '1.9'

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@requires-ruby-version-2' do |scenario|
  next if RUBY_VERSION >= '2'

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@requires-aruba-version-1' do |scenario|
  next if Aruba::VERSION > '1'

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@requires-ruby-platform-java' do |scenario|
  # leave if java
  next if RUBY_PLATFORM.include? 'java'

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@requires-ruby-platform-mri' do |scenario|
  # leave if not java
  next unless RUBY_PLATFORM.include? 'java'

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@unsupported-on-platform-windows' do |scenario|
  # leave if not windows
  next unless FFI::Platform.windows?

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@unsupported-on-platform-unix' do |scenario|
  # leave if not windows
  next unless FFI::Platform.unix?

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Before '@unsupported-on-platform-mac' do |scenario|
  # leave if not windows
  next unless FFI::Platform.mac?

  if Cucumber::VERSION < '2'
    scenario.skip_invoke!
  else
    skip_this_scenario
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
aruba-win-fix-0.14.2 features/step_definitions/hooks.rb
aruba-0.14.2 features/step_definitions/hooks.rb
aruba-0.14.1 features/step_definitions/hooks.rb
aruba-0.14.0 features/step_definitions/hooks.rb
aruba-0.13.0 features/step_definitions/hooks.rb
aruba-0.12.0 features/step_definitions/hooks.rb
aruba-0.11.2 features/step_definitions/hooks.rb
aruba-0.11.1 features/step_definitions/hooks.rb
aruba-0.11.0.pre4 features/step_definitions/hooks.rb
aruba-0.11.0.pre3 features/step_definitions/hooks.rb
aruba-0.11.0.pre2 features/step_definitions/hooks.rb
aruba-0.11.0.pre features/step_definitions/hooks.rb