Sha256: eb2e8c8c74998c8215e46009c2157f0089f25f8470a05a89a2f1a382be654706

Contents?: true

Size: 1.44 KB

Versions: 18

Compression:

Stored size: 1.44 KB

Contents

require 'rubygems'

if ENV['COVERAGE']
  require File.join(File.dirname(File.expand_path(__FILE__)), "../sequel_coverage")
  SimpleCov.sequel_coverage(:filter=>%r{lib/sequel/(\w+\.rb|(dataset|database|model|connection_pool)/\w+\.rb|adapters/mock\.rb)\z})
end

unless Object.const_defined?('Sequel')
  $:.unshift(File.join(File.dirname(File.expand_path(__FILE__)), "../../lib/"))
  require 'sequel/core'
end
Sequel::Deprecation.backtrace_filter = lambda{|line, lineno| lineno < 4 || line =~ /_spec\.rb/}

require File.join(File.dirname(File.expand_path(__FILE__)), "../rspec_helper.rb")

RSPEC_EXAMPLE_GROUP.class_eval do
  def meta_def(obj, name, &block)
    (class << obj; self end).send(:define_method, name, &block)
  end

  if ENV['SEQUEL_DEPRECATION_WARNINGS']
    class << self
      alias qspecify specify
    end
  else
    def self.qspecify(*a, &block)
      specify(*a) do
        begin
          output = Sequel::Deprecation.output
          Sequel::Deprecation.output = false
          instance_exec(&block)
        ensure
          Sequel::Deprecation.output = output 
        end
      end
    end
  end
end

if ENV['SEQUEL_COLUMNS_INTROSPECTION']
  Sequel.extension :columns_introspection
  Sequel::Database.extension :columns_introspection
  Sequel.require 'adapters/mock'
  Sequel::Mock::Dataset.send(:include, Sequel::ColumnsIntrospection)
end

Sequel.quote_identifiers = false
Sequel.identifier_input_method = nil
Sequel.identifier_output_method = nil

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
sequel-4.22.0 spec/core/spec_helper.rb
sequel-4.21.0 spec/core/spec_helper.rb
sequel-4.20.0 spec/core/spec_helper.rb
sequel-4.19.0 spec/core/spec_helper.rb
sequel-4.18.0 spec/core/spec_helper.rb
sequel-4.17.0 spec/core/spec_helper.rb
sequel-4.16.0 spec/core/spec_helper.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/spec_helper.rb
sequel-4.15.0 spec/core/spec_helper.rb
sequel-4.14.0 spec/core/spec_helper.rb
sequel-4.13.0 spec/core/spec_helper.rb
sequel-4.12.0 spec/core/spec_helper.rb
sequel-4.11.0 spec/core/spec_helper.rb
sequel-4.10.0 spec/core/spec_helper.rb
sequel-4.9.0 spec/core/spec_helper.rb
sequel-4.8.0 spec/core/spec_helper.rb
sequel-4.7.0 spec/core/spec_helper.rb
sequel-4.6.0 spec/core/spec_helper.rb