Sha256: 9ffbb6272af901c6e846cb2a8f82ba2698f40357086651457f60fbacb361c49b

Contents?: true

Size: 830 Bytes

Versions: 3

Compression:

Stored size: 830 Bytes

Contents

# frozen_string_literal: true

require 'warning'
# Ignore Ruby 2.7 warnings from Active Record
Warning.ignore :keyword_separation

require 'simplecov'
SimpleCov.start

require "bundler/setup"
require "pg_search"

RSpec.configure do |config|
  config.expect_with :rspec do |expects|
    expects.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_doubled_constant_names = true
    mocks.verify_partial_doubles = true
  end

  config.example_status_persistence_file_path = 'tmp/examples.txt'
end

require 'support/database'
require 'support/with_model'

DOCUMENTS_SCHEMA = lambda do |t|
  t.belongs_to :searchable, polymorphic: true, index: true
  t.text :content
  t.timestamps null: false

  # Used to test additional_attributes setup
  t.text :additional_attribute_column
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_search-2.3.5 spec/spec_helper.rb
pg_search-2.3.4 spec/spec_helper.rb
pg_search-2.3.3 spec/spec_helper.rb