Sha256: 7776316af059ffd6b940af7ae8ded9c006239c54af1b1f758d2132d91a054e76

Contents?: true

Size: 1.09 KB

Versions: 30

Compression:

Stored size: 1.09 KB

Contents

module Pendings
  def pending_192(msg)
    if ZK.mri_19x?
      if block_given?
        pending(msg) { yield }
      else
        pending(msg)
      end
    else
      yield if block_given?
    end
  end

  def pending_187(msg)
    if ZK.mri_187?
      if block_given?
        pending(msg) { yield }
      else
        pending(msg)
      end
    else
      yield if block_given?
    end
  end

  def pending_jruby19(msg)
    if ZK.ruby_19? and ZK.jruby?
      if block_given?
        pending(msg) { yield }
      else
        pending(msg)
      end
    else
      yield if block_given?
    end
  end

  def pending_rbx(msg)
    if ZK.rubinius?
      if block_given?
        pending(msg) { yield }
      else
        pending(msg)
      end
    else
      yield if block_given?
    end
  end
  alias pending_rubinius pending_rbx

  def pending_in_travis(msg)
    # defined in the somewhat ill-named 00_test_port_attr.rb
    if ZK.travis?
      if block_given?
        pending("TRAVIS: #{msg}") { yield }
      else
        pending("TRAVIS: #{msg}")
      end
    else
      yield if block_given?
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
zk-1.10.0 spec/support/pendings.rb
zk-1.9.6 spec/support/pendings.rb
zk-1.9.5 spec/support/pendings.rb
zk-1.9.4 spec/support/pendings.rb
zk-1.9.3 spec/support/pendings.rb
zk-1.9.2 spec/support/pendings.rb
zk-1.9.1 spec/support/pendings.rb
zk-1.9.0 spec/support/pendings.rb
zk-1.8.0 spec/support/pendings.rb
zk-1.7.5 spec/support/pendings.rb
zk-1.7.4 spec/support/pendings.rb
zk-1.7.3 spec/support/pendings.rb
zk-1.7.2 spec/support/pendings.rb
zk-1.7.1 spec/support/pendings.rb
zk-1.7.0 spec/support/pendings.rb
zk-1.6.5 spec/support/pendings.rb
zk-1.6.4 spec/support/pendings.rb
zk-1.6.3 spec/support/pendings.rb
zk-1.6.2 spec/support/pendings.rb
zk-1.6.1 spec/support/pendings.rb