Sha256: 918928b53685d038a4affd5d50dd07e1844bc2f0605490a3a8af682bad6e7b59

Contents?: true

Size: 872 Bytes

Versions: 4

Compression:

Stored size: 872 Bytes

Contents

require 'rubygems'
unless Object.const_defined?('Sequel')
  $:.unshift(File.join(File.dirname(__FILE__), "../../lib/"))
  require 'sequel'
  Sequel.quote_identifiers = false
end
begin
  require File.join(File.dirname(File.dirname(__FILE__)), 'spec_config.rb')
rescue LoadError
end

class Spec::Example::ExampleGroup
  def self.cspecify(message, *checked, &block)
    pending = false
    checked.each do |c|
      case c
      when INTEGRATION_DB.class.adapter_scheme
        pending = c
      when Proc
        pending = c if c.first.call(INTEGRATION_DB)
      when Array
        pending = c if c.first == INTEGRATION_DB.class.adapter_scheme && c.last == INTEGRATION_DB.call(INTEGRATION_DB)
      end
    end
    if pending
      specify(message){pending("Not yet working on #{Array(pending).join(', ')}", &block)}
    else
      specify(message, &block)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sequel-3.8.0 spec/adapters/spec_helper.rb
sequel-3.7.0 spec/adapters/spec_helper.rb
sequel-3.6.0 spec/adapters/spec_helper.rb
sequel-3.5.0 spec/adapters/spec_helper.rb