Sha256: 21ffaee3d0e1e606e0f9d2dd6d3c13842620a5e29f175408a3808a5185467ff3

Contents?: true

Size: 683 Bytes

Versions: 45

Compression:

Stored size: 683 Bytes

Contents

Sequel::Deprecation.backtrace_filter = lambda{|line, lineno| lineno < 4 || line =~ /_spec\.rb/}

class Minitest::HooksSpec
  def self.deprecated(a, &block)
    it("#{a} (deprecated)") do
      deprecated{instance_exec(&block)}
    end
  end

  def deprecated
    output = Sequel::Deprecation.output
    Sequel::Deprecation.output = nil
    yield
  ensure
    Sequel::Deprecation.output = output
  end

  def self.with_symbol_splitting(a, &block)
    it("#{a}, with symbol splitting enabled") do
      with_symbol_splitting{instance_exec(&block)}
    end
  end

  def with_symbol_splitting
    Sequel.split_symbols = true
    yield
  ensure
    Sequel.split_symbols = false
  end
end

Version data entries

45 entries across 41 versions & 2 rubygems

Version Path
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/sequel-5.26.0/spec/deprecation_helper.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/sequel-5.29.0/spec/deprecation_helper.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/sequel-5.26.0/spec/deprecation_helper.rb
sequel-5.29.0 spec/deprecation_helper.rb
sequel-5.28.0 spec/deprecation_helper.rb
sequel-5.27.0 spec/deprecation_helper.rb
tdiary-5.1.0 vendor/bundle/gems/sequel-5.26.0/spec/deprecation_helper.rb
sequel-5.26.0 spec/deprecation_helper.rb
sequel-5.25.0 spec/deprecation_helper.rb
sequel-5.24.0 spec/deprecation_helper.rb
sequel-5.23.0 spec/deprecation_helper.rb
sequel-5.22.0 spec/deprecation_helper.rb
sequel-5.21.0 spec/deprecation_helper.rb
sequel-5.20.0 spec/deprecation_helper.rb
tdiary-5.0.13 vendor/bundle/gems/sequel-5.18.0/spec/deprecation_helper.rb
sequel-5.19.0 spec/deprecation_helper.rb
tdiary-5.0.12.1 vendor/bundle/gems/sequel-5.18.0/spec/deprecation_helper.rb
sequel-5.18.0 spec/deprecation_helper.rb
sequel-5.17.0 spec/deprecation_helper.rb
sequel-5.16.0 spec/deprecation_helper.rb